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:
dhewg 2011-02-24 21:53:13 +01:00
parent a636d41ca8
commit c8551b80dd

View File

@ -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() {