diff options
author | dhewg | 2011-03-14 23:44:43 +0100 |
---|---|---|
committer | dhewg | 2011-03-15 00:05:59 +0100 |
commit | 7b850c18c7303fa06ff357cf2295e868a16ed1cf (patch) | |
tree | 1fe926617fd2f9e9748171bb182c27d04526cb90 /backends/platform/android/gfx.cpp | |
parent | 8f40a18146a1a16a5a1d3932e08c2f45e53ea000 (diff) | |
download | scummvm-rg350-7b850c18c7303fa06ff357cf2295e868a16ed1cf.tar.gz scummvm-rg350-7b850c18c7303fa06ff357cf2295e868a16ed1cf.tar.bz2 scummvm-rg350-7b850c18c7303fa06ff357cf2295e868a16ed1cf.zip |
ANDROID: Cleanup
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r-- | backends/platform/android/gfx.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index d08cc631bf..65f98d5094 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -449,6 +449,7 @@ void OSystem_Android::updateScreen() { _game_texture->drawTextureRect(); } else { GLCALL(glPushMatrix()); + GLCALL(glScalex(xdiv(_egl_surface_width, _focus_rect.width()), xdiv(_egl_surface_height, _focus_rect.height()), 1 << 16)); @@ -459,6 +460,7 @@ void OSystem_Android::updateScreen() { 1 << 16)); _game_texture->drawTextureRect(); + GLCALL(glPopMatrix()); } @@ -476,7 +478,7 @@ void OSystem_Android::updateScreen() { if (_show_mouse) { GLCALL(glPushMatrix()); - Common::Point mouse = getEventManager()->getMousePos(); + const Common::Point &mouse = getEventManager()->getMousePos(); // Scale up ScummVM -> OpenGL (pixel) coordinates if (_show_overlay) { @@ -659,6 +661,10 @@ int16 OSystem_Android::getOverlayWidth() { return _overlay_texture->width(); } +Graphics::PixelFormat OSystem_Android::getOverlayFormat() const { + return _overlay_texture->getPixelFormat(); +} + bool OSystem_Android::showMouse(bool visible) { ENTER("%d", visible); |