From d060b597c38d6332ae4eb79d051427a2381bfc5c Mon Sep 17 00:00:00 2001 From: dhewg Date: Mon, 14 Mar 2011 19:27:10 +0100 Subject: ANDROID: Fade out the game screen when the overlay is visible --- backends/platform/android/gfx.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backends/platform/android') 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; -- cgit v1.2.3