aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
authorMax Horn2003-11-02 18:57:20 +0000
committerMax Horn2003-11-02 18:57:20 +0000
commitac4b9ccdb8f0d0491c80ec026d8ed510f729cabf (patch)
treea15d861ad395b869ae480c1dbe26e9f8fa1e7f2e /gui/newgui.cpp
parent7ec257ae3f48275a911bc503aa7ed4591b06ceac (diff)
downloadscummvm-rg350-ac4b9ccdb8f0d0491c80ec026d8ed510f729cabf.tar.gz
scummvm-rg350-ac4b9ccdb8f0d0491c80ec026d8ed510f729cabf.tar.bz2
scummvm-rg350-ac4b9ccdb8f0d0491c80ec026d8ed510f729cabf.zip
refactored code in Dialog::findWidget to Widget::findWidgetInChain; changed NewGui::box() to take colors as param (instead of hard coding _color and _shadowColor)
svn-id: r11061
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 0a9b44074c..c46b3664f8 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -285,10 +285,7 @@ NewGuiColor *NewGui::getBasePtr(int x, int y) {
return _screen + x + y * _screenPitch;
}
-void NewGui::box(int x, int y, int width, int height, bool inverted) {
- NewGuiColor colorA = inverted ? _shadowcolor : _color;
- NewGuiColor colorB = inverted ? _color : _shadowcolor;
-
+void NewGui::box(int x, int y, int width, int height, NewGuiColor colorA, NewGuiColor colorB) {
hLine(x + 1, y, x + width - 2, colorA);
hLine(x, y + 1, x + width - 1, colorA);
vLine(x, y + 1, y + height - 2, colorA);