Added virtual 480x320 and 800x480 video modes
This commit is contained in:
@@ -100,7 +100,7 @@ static void ANDROID_UpdateRects(_THIS, int numrects, SDL_Rect *rects);
|
|||||||
|
|
||||||
/* Private display data */
|
/* Private display data */
|
||||||
|
|
||||||
#define SDL_NUMMODES 9
|
#define SDL_NUMMODES 11
|
||||||
static SDL_Rect *SDL_modelist[SDL_NUMMODES+1];
|
static SDL_Rect *SDL_modelist[SDL_NUMMODES+1];
|
||||||
|
|
||||||
//#define SDL_modelist (this->hidden->SDL_modelist)
|
//#define SDL_modelist (this->hidden->SDL_modelist)
|
||||||
@@ -238,7 +238,9 @@ int ANDROID_VideoInit(_THIS, SDL_PixelFormat *vformat)
|
|||||||
SDL_modelist[7]->h = SDL_ANDROID_sWindowHeight * 2 / 3;
|
SDL_modelist[7]->h = SDL_ANDROID_sWindowHeight * 2 / 3;
|
||||||
SDL_modelist[8]->w = SDL_ANDROID_sWindowWidth / 2;
|
SDL_modelist[8]->w = SDL_ANDROID_sWindowWidth / 2;
|
||||||
SDL_modelist[8]->h = SDL_ANDROID_sWindowHeight / 2;
|
SDL_modelist[8]->h = SDL_ANDROID_sWindowHeight / 2;
|
||||||
SDL_modelist[9] = NULL;
|
SDL_modelist[9]->w = 480; SDL_modelist[9]->h = 320; // Virtual wide-screen mode
|
||||||
|
SDL_modelist[10]->w = 800; SDL_modelist[10]->h = 480; // Virtual wide-screen mode
|
||||||
|
SDL_modelist[11] = NULL;
|
||||||
|
|
||||||
SDL_VideoInit_1_3(NULL, 0);
|
SDL_VideoInit_1_3(NULL, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user