ANDROID: Update screen rects on surface changes

Fixes regression introduced with 4267011e
This commit is contained in:
dhewg 2011-03-14 17:24:12 +01:00
parent ca1f9a075f
commit 57635fe75c
2 changed files with 7 additions and 1 deletions

View File

@ -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();

View File

@ -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;