ANDROID: Fade out the game screen when the overlay is visible
This commit is contained in:
parent
6389e70e45
commit
d060b597c3
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue