mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
GUI: Properly clear the screen buffer
Don't operate on the overlay, it might be a pointer to a texture used by the hardware. This get's rid of some annoying flickers on androids
This commit is contained in:
parent
a636d41ca8
commit
c8551b80dd
@ -421,10 +421,9 @@ bool ThemeEngine::init() {
|
||||
}
|
||||
|
||||
void ThemeEngine::clearAll() {
|
||||
if (_initOk) {
|
||||
_system->clearOverlay();
|
||||
_system->grabOverlay((OverlayColor *)_screen.pixels, _screen.w);
|
||||
}
|
||||
if (_initOk)
|
||||
memset(_screen.pixels, _overlayFormat.RGBToColor(0, 0, 0),
|
||||
_screen.w * _screen.h * sizeof(uint16));
|
||||
}
|
||||
|
||||
void ThemeEngine::refresh() {
|
||||
|
Loading…
Reference in New Issue
Block a user