diff options
author | dhewg | 2011-03-01 22:16:10 +0100 |
---|---|---|
committer | dhewg | 2011-03-02 23:18:34 +0100 |
commit | bd7e3e9bb20dada6d40143557c473fabd373b5ed (patch) | |
tree | 4c989d3127ed45473689d460ff5618c538f604ff /backends/platform/android/android.cpp | |
parent | 2333a32697cda8f5f73861856889001839f38f25 (diff) | |
download | scummvm-rg350-bd7e3e9bb20dada6d40143557c473fabd373b5ed.tar.gz scummvm-rg350-bd7e3e9bb20dada6d40143557c473fabd373b5ed.tar.bz2 scummvm-rg350-bd7e3e9bb20dada6d40143557c473fabd373b5ed.zip |
ANDROID: cleanup
Diffstat (limited to 'backends/platform/android/android.cpp')
-rw-r--r-- | backends/platform/android/android.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp index 2af367e903..a61f7daee3 100644 --- a/backends/platform/android/android.cpp +++ b/backends/platform/android/android.cpp @@ -442,9 +442,12 @@ bool OSystem_Android::pollEvent(Common::Event &event) { } else { // Touchscreen events need to be converted // from device to game coords first. - const GLESTexture *tex = _show_overlay - ? static_cast<GLESTexture *>(_overlay_texture) - : static_cast<GLESTexture *>(_game_texture); + const GLESTexture *tex; + if (_show_overlay) + tex = _overlay_texture; + else + tex = _game_texture; + event.mouse.x = scalef(event.mouse.x, tex->width(), _egl_surface_width); event.mouse.y = scalef(event.mouse.y, tex->height(), |