aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/android/android.cpp4
-rw-r--r--backends/platform/android/gfx.cpp4
2 files changed, 7 insertions, 1 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 4d83dd789e..85d4817f29 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -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();
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index dc8acaca29..83ee8ba0f0 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -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;