diff options
author | dhewg | 2011-03-14 19:27:10 +0100 |
---|---|---|
committer | dhewg | 2011-03-14 19:35:36 +0100 |
commit | d060b597c38d6332ae4eb79d051427a2381bfc5c (patch) | |
tree | ab4d7cd46c20277c94a98e30590a83981d6d5be6 /backends/platform/android/gfx.cpp | |
parent | 6389e70e45864aaec860481cc25208f1a9ca4a76 (diff) | |
download | scummvm-rg350-d060b597c38d6332ae4eb79d051427a2381bfc5c.tar.gz scummvm-rg350-d060b597c38d6332ae4eb79d051427a2381bfc5c.tar.bz2 scummvm-rg350-d060b597c38d6332ae4eb79d051427a2381bfc5c.zip |
ANDROID: Fade out the game screen when the overlay is visible
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r-- | backends/platform/android/gfx.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index dfab8255ae..d08cc631bf 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -442,6 +442,9 @@ void OSystem_Android::updateScreen() { GLCALL(glTranslatex(0, -_shake_offset << 16, 0)); } + if (_show_overlay) + GLCALL(glColor4ub(0x9f, 0x9f, 0x9f, 0x9f)); + if (_focus_rect.isEmpty()) { _game_texture->drawTextureRect(); } else { @@ -462,6 +465,8 @@ void OSystem_Android::updateScreen() { int cs = _mouse_targetscale; if (_show_overlay) { + GLCALL(glColor4ub(0xff, 0xff, 0xff, 0xff)); + // ugly, but the modern theme sets a wacko factor, only god knows why cs = 1; |