aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-30 11:26:00 +0000
committerFilippos Karapetis2009-10-30 11:26:00 +0000
commit932cd54bbe0bb612eb828637c13ee068b4640b95 (patch)
treeb3c9dc2c37d5242b954119f9b1028cea928ec112 /engines/sci/gui
parent0c2ab7182966b1897413e145fe80b95fca454edc (diff)
downloadscummvm-rg350-932cd54bbe0bb612eb828637c13ee068b4640b95.tar.gz
scummvm-rg350-932cd54bbe0bb612eb828637c13ee068b4640b95.tar.bz2
scummvm-rg350-932cd54bbe0bb612eb828637c13ee068b4640b95.zip
Rewrote the avoidpath debug code to use new graphics functions
svn-id: r45533
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui.cpp5
-rw-r--r--engines/sci/gui/gui.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index b86a1dc065..42b66d69aa 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -434,6 +434,11 @@ void SciGui::graphFillBox(Common::Rect rect, uint16 colorMask, int16 color, int1
_gfx->FillRect(rect, colorMask, color, priority, control);
}
+void SciGui::graphFrameBox(Common::Rect rect, int16 color) {
+ _gfx->PenColor(color);
+ _gfx->FrameRect(rect);
+}
+
void SciGui::graphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control) {
_gfx->OffsetLine(startPoint, endPoint);
_screen->drawLine(startPoint.x, startPoint.y, endPoint.x, endPoint.y, color, priority, control);
diff --git a/engines/sci/gui/gui.h b/engines/sci/gui/gui.h
index 2ed9a253c8..26010e9d67 100644
--- a/engines/sci/gui/gui.h
+++ b/engines/sci/gui/gui.h
@@ -93,6 +93,7 @@ public:
virtual void graphFillBoxForeground(Common::Rect rect);
virtual void graphFillBoxBackground(Common::Rect rect);
virtual void graphFillBox(Common::Rect rect, uint16 colorMask, int16 color, int16 priority, int16 control);
+ virtual void graphFrameBox(Common::Rect rect, int16 color);
virtual void graphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control);
virtual reg_t graphSaveBox(Common::Rect rect, uint16 flags);
virtual void graphRestoreBox(reg_t handle);