mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-03 15:54:39 +00:00
ios: Enable the android portrait mode hack for ios too.
This commit is contained in:
parent
1a236f4a67
commit
675468e9d6
2
gfx/gl.c
2
gfx/gl.c
@ -725,7 +725,7 @@ void gl_set_viewport(void *data, unsigned width, unsigned height, bool force_ful
|
|||||||
gl->vp.height = height;
|
gl->vp.height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ANDROID
|
#if defined(ANDROID) || defined(IOS)
|
||||||
// In portrait mode, we want viewport to gravitate to top of screen.
|
// In portrait mode, we want viewport to gravitate to top of screen.
|
||||||
if (device_aspect < 1.0f)
|
if (device_aspect < 1.0f)
|
||||||
gl->vp.y *= 2;
|
gl->vp.y *= 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user