ios: Enable the android portrait mode hack for ios too.

This commit is contained in:
meancoot 2013-02-07 19:10:46 -05:00
parent 1a236f4a67
commit 675468e9d6

View File

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