aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2008-11-03 20:15:45 +0000
committerJohannes Schickel2008-11-03 20:15:45 +0000
commit4905d827b70c9c0e626be27a1f7d15201a60d747 (patch)
tree14d0c6a1c0fe994ab556faf4b45224f2f0d48432 /gui
parent112feada4e68ecae1bdbd380f9b8d4fac15bd396 (diff)
downloadscummvm-rg350-4905d827b70c9c0e626be27a1f7d15201a60d747.tar.gz
scummvm-rg350-4905d827b70c9c0e626be27a1f7d15201a60d747.tar.bz2
scummvm-rg350-4905d827b70c9c0e626be27a1f7d15201a60d747.zip
Removed dependency on OSystem::RGBToColor, by using Graphics::RGBToColor + Graphics::PixelFormat instead.
svn-id: r34888
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;