aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 818676dbf4..1fcf7bc357 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -359,8 +359,8 @@ void GraphicsWidget::setGfx(int w, int h, int r, int g, int b) {
_gfx.create(w, h, sizeof(OverlayColor));
OverlayColor *dst = (OverlayColor*)_gfx.pixels;
- // TODO: get rid of g_system usage
- OverlayColor fillCol = g_system->RGBToColor(r, g, b);
+ Graphics::PixelFormat overlayFormat = g_system->getOverlayFormat();
+ OverlayColor fillCol = Graphics::RGBToColor(r, g, b, overlayFormat);
while (h--) {
for (int i = 0; i < w; ++i) {
*dst++ = fillCol;