aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/android.cpp
diff options
context:
space:
mode:
authordhewg2011-03-14 17:24:12 +0100
committerdhewg2011-03-14 19:35:35 +0100
commit57635fe75cdf01a654d760efa0528a2aa186a391 (patch)
tree1fea2587098ea5b8ecdf455f57c70580e353a53c /backends/platform/android/android.cpp
parentca1f9a075f7914ae3ceb83b9a01b5b7a193041e9 (diff)
downloadscummvm-rg350-57635fe75cdf01a654d760efa0528a2aa186a391.tar.gz
scummvm-rg350-57635fe75cdf01a654d760efa0528a2aa186a391.tar.bz2
scummvm-rg350-57635fe75cdf01a654d760efa0528a2aa186a391.zip
ANDROID: Update screen rects on surface changes
Fixes regression introduced with 4267011e
Diffstat (limited to 'backends/platform/android/android.cpp')
-rw-r--r--backends/platform/android/android.cpp4
1 files changed, 4 insertions, 0 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();