Added new video mode

This commit is contained in:
Sergii Pylypenko
2013-05-29 23:23:41 +03:00
parent da0d0826f8
commit f8716daf52
2 changed files with 4 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ AppSubdirsBuild='src src/libs/* src/uqm/*'
AppBuildExclude='src/libs/uio/hashtable.c src/libs/uio/memdebug.c src/libs/network/socket/socket_win.c src/libs/network/network_win.c src/libs/network/netmanager/netmanager_win.c src/libs/cdp/cdpapi.c src/libs/cdp/cdp.c src/libs/cdp/windl.c'
# Application command line parameters, including app name as 0-th param
AppCmdline='uqm --addon lang -x -r 1280x960 -w --resfactor=2'
AppCmdline='uqm --addon lang -x -r 1280x960 -f --resfactor=2'
# Here you may type readme text, which will be shown during startup. Format is:
# Text in English, use \\\\n to separate lines^de:Text in Deutsch^ru:Text in Russian, and so on (that's four backslashes, nice isn't it?)

View File

@@ -115,7 +115,7 @@ int ANDROID_ToggleFullScreen(_THIS, int fullscreen)
return 1;
}
enum { SDL_NUMMODES = 55 };
enum { SDL_NUMMODES = 56 };
static SDL_Rect *SDL_modelist[SDL_NUMMODES+1];
//#define SDL_modelist (this->hidden->SDL_modelist)
@@ -322,7 +322,8 @@ int ANDROID_VideoInit(_THIS, SDL_PixelFormat *vformat)
SDL_modelist[52]->w = 768; SDL_modelist[52]->h = 256; // For UAE4ALL2
SDL_modelist[53]->w = 768; SDL_modelist[53]->h = 262; // For UAE4ALL2
SDL_modelist[54]->w = 768; SDL_modelist[54]->h = 270; // For UAE4ALL2
SDL_modelist[55] = NULL;
SDL_modelist[55]->w = 1280; SDL_modelist[55]->h = 960; // For UQM-HD
SDL_modelist[56] = NULL;
// If you going to add another video mode, increase SDL_NUMMODES constant
SDL_VideoInit_1_3(NULL, 0);