src/video/android/SDL_androidvideo.c
changeset 4707 8b109f0dcd2f
parent 4703 c93b44ddc63e
child 4713 ba38983b10c2
equal deleted inserted replaced
4706:12c9d4532b49 4707:8b109f0dcd2f
   118 {
   118 {
   119     SDL_DisplayMode mode;
   119     SDL_DisplayMode mode;
   120 
   120 
   121     /* Use a fake 32-bpp desktop mode */
   121     /* Use a fake 32-bpp desktop mode */
   122     mode.format = SDL_PIXELFORMAT_RGB888;
   122     mode.format = SDL_PIXELFORMAT_RGB888;
   123     mode.w = 1024;
   123     mode.w = 320;
   124     mode.h = 768;
   124     mode.h = 480;
   125     mode.refresh_rate = 0;
   125     mode.refresh_rate = 0;
   126     mode.driverdata = NULL;
   126     mode.driverdata = NULL;
   127     if (SDL_AddBasicVideoDisplay(&mode) < 0) {
   127     if (SDL_AddBasicVideoDisplay(&mode) < 0) {
   128         return -1;
   128         return -1;
   129     }
   129     }