mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 20:01:25 +00:00
ANDROID: Update screen rects on surface changes
Fixes regression introduced with 4267011e
This commit is contained in:
parent
ca1f9a075f
commit
57635fe75c
@ -435,6 +435,8 @@ bool OSystem_Android::pollEvent(Common::Event &event) {
|
||||
_egl_surface_height = JNI::egl_surface_height;
|
||||
|
||||
initViewport();
|
||||
updateScreenRect();
|
||||
|
||||
// double buffered, flip twice
|
||||
_force_redraw = true;
|
||||
updateScreen();
|
||||
@ -447,6 +449,8 @@ bool OSystem_Android::pollEvent(Common::Event &event) {
|
||||
} else {
|
||||
// new surface
|
||||
initSurface();
|
||||
updateScreenRect();
|
||||
|
||||
_force_redraw = true;
|
||||
updateScreen();
|
||||
|
||||
|
@ -296,7 +296,9 @@ void OSystem_Android::updateScreenRect() {
|
||||
|
||||
Common::Rect rect(0, 0, _egl_surface_width, _egl_surface_height);
|
||||
|
||||
if (!_fullscreen) {
|
||||
_overlay_texture->setDrawRect(rect);
|
||||
|
||||
if (w && h && !_fullscreen) {
|
||||
if (_ar_correction && w == 320 && h == 200)
|
||||
h = 240;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user