Check aspect lower than 1.

This commit is contained in:
Themaister 2013-01-25 00:20:55 +01:00
parent 47e950e9d8
commit e92441f5b8

View File

@ -711,7 +711,8 @@ void gl_set_viewport(void *data, unsigned width, unsigned height, bool force_ful
} }
#ifdef ANDROID #ifdef ANDROID
if (device_aspect > 1.0f) // In portrait mode, we want viewport to gravitate to top of screen.
if (device_aspect < 1.0f)
y *= 2; y *= 2;
#endif #endif