Lines Matching refs:modes
763 * using guest VRAM memory for linear modes and using SDL allocated
764 * system memory for text and non linear graphics modes. We never
780 SDL_Rect **modes;
781 /* Get available fullscreen/hardware modes */
782 modes = SDL_ListModes(NULL, sdlFlags);
783 Assert(modes != NULL);
785 if (modes != (SDL_Rect **)-1)
789 * the modes are sorted from larger to smaller, so we just
792 mMaxScreenWidth = modes[0]->w;
793 mMaxScreenHeight = modes[0]->h;
1116 SDL_Rect **modes;
1118 /* Get available fullscreen/hardware modes */
1119 modes = SDL_ListModes(NULL, SDL_FULLSCREEN);
1120 Assert(modes != NULL);
1122 if (modes != (SDL_Rect **)-1)
1125 * According to the SDL documentation, the API guarantees that the modes
1131 if ( modes[0]->w > (16*modes[0]->h/9)
1132 && modes[1]
1133 && modes[1]->h == modes[0]->h)
1135 *width = modes[1]->w;
1136 *height = modes[1]->h;
1140 *width = modes[0]->w;
1141 *height = modes[0]->w;