aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r--gui/ThemeEngine.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index ee83ca620c..356ed0ff90 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -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() {