aboutsummaryrefslogtreecommitdiff
path: root/newgui.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-08 22:11:47 +0000
committerMax Horn2002-07-08 22:11:47 +0000
commit0a9baabbdc173f772c4278b1f5c90f59121d4ee9 (patch)
treec09de90e88d5062603d71f59399192a71ff56e17 /newgui.cpp
parent5fa2ab9e006e041e78b966ec5baa42872e69114f (diff)
downloadscummvm-rg350-0a9baabbdc173f772c4278b1f5c90f59121d4ee9.tar.gz
scummvm-rg350-0a9baabbdc173f772c4278b1f5c90f59121d4ee9.tar.bz2
scummvm-rg350-0a9baabbdc173f772c4278b1f5c90f59121d4ee9.zip
replaced clearArea with the more general fillArea; added get/setValue methods to SliderWidget; changed look of SliderWidget a little bit; optimized drawing of SliderWidget
svn-id: r4500
Diffstat (limited to 'newgui.cpp')
-rw-r--r--newgui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgui.cpp b/newgui.cpp
index 059980b67e..be0e706823 100644
--- a/newgui.cpp
+++ b/newgui.cpp
@@ -242,7 +242,7 @@ void NewGui::line(int x, int y, int x2, int y2, byte color)
}
}
-void NewGui::clearArea(int x, int y, int w, int h)
+void NewGui::fillArea(int x, int y, int w, int h, byte color)
{
byte *ptr = getBasePtr(x, y);
if (ptr == NULL)
@@ -250,7 +250,7 @@ void NewGui::clearArea(int x, int y, int w, int h)
while (h--) {
for (int i = 0; i < w; i++)
- ptr[i] = _bgcolor;
+ ptr[i] = color;
ptr += 320;
}
}