Sanity check for SdlVideoResizeKeepAspect.
This commit is contained in:
@@ -47,7 +47,7 @@ SwVideoMode=y
|
||||
SdlVideoResize=y
|
||||
|
||||
# Application resizing will keep 4:3 aspect ratio, with black bars at sides (y)/(n)
|
||||
SdlVideoResizeKeepAspect=n
|
||||
SdlVideoResizeKeepAspect=y
|
||||
|
||||
CompatibilityHacksProperUsageOfSDL_UpdateRects=y
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#define SCREEN_W 640
|
||||
#define SCREEN_H 480
|
||||
#define SCREEN_H 256
|
||||
|
||||
|
||||
#define BALLS 300
|
||||
|
||||
Submodule project/jni/application/openarena/engine updated: 07c011b6cc...30e98be358
Submodule project/jni/application/openarena/vm updated: 4b83db91ab...278f045202
Submodule project/jni/application/teeworlds/src updated: 34b64249c4...e5489c8c08
Submodule project/jni/application/xserver/xserver updated: fe78614169...b4dd6771eb
@@ -388,7 +388,8 @@ SDL_Surface *ANDROID_SetVideoMode(_THIS, SDL_Surface *current,
|
||||
SDL_ANDROID_sWindowHeight = SDL_ANDROID_sRealWindowHeight;
|
||||
|
||||
SDL_ANDROID_ForceClearScreenRectAmount = 0;
|
||||
if( SDL_ANDROID_ScreenKeep43Ratio )
|
||||
if( SDL_ANDROID_ScreenKeep43Ratio &&
|
||||
(float)width / (float)height < (float)SDL_ANDROID_sWindowWidth / (float)SDL_ANDROID_sWindowHeight )
|
||||
{
|
||||
SDL_ANDROID_sWindowWidth = (SDL_ANDROID_sFakeWindowWidth * SDL_ANDROID_sRealWindowHeight) / SDL_ANDROID_sFakeWindowHeight;
|
||||
SDL_ANDROID_TouchscreenCalibrationWidth = SDL_ANDROID_sWindowWidth;
|
||||
|
||||
Reference in New Issue
Block a user