Check aspect lower than 1.
This commit is contained in:
parent
47e950e9d8
commit
e92441f5b8
3
gfx/gl.c
3
gfx/gl.c
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue