diff options
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui.cpp | 5 | ||||
-rw-r--r-- | engines/sci/gui/gui.h | 1 |
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); |