diff options
-rw-r--r-- | gui/ThemeEngine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 235ea24fbe..026370abf1 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -421,9 +421,10 @@ bool ThemeEngine::init() { } void ThemeEngine::clearAll() { - if (_initOk) - memset(_screen.pixels, _overlayFormat.RGBToColor(0, 0, 0), - _screen.w * _screen.h * sizeof(uint16)); + if (_initOk) { + _system->clearOverlay(); + _system->grabOverlay((OverlayColor *)_screen.pixels, _screen.w); + } } void ThemeEngine::refresh() { |