ANDROID: Fade out the game screen when the overlay is visible

This commit is contained in:
dhewg 2011-03-14 19:27:10 +01:00
parent 6389e70e45
commit d060b597c3

View file

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