diff options
author | Martin Kiewitz | 2009-10-05 11:42:04 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-05 11:42:04 +0000 |
commit | 6e38de3905ec7f5cbbfb991b4a4f960027550b3a (patch) | |
tree | 43c8cfe8d0e02fb8891ac0836caaae5f6c8e1acc /engines/sci/gui | |
parent | 55e7c29d95b6d77c4e59f1deeae5760f4cf0b29e (diff) | |
download | scummvm-rg350-6e38de3905ec7f5cbbfb991b4a4f960027550b3a.tar.gz scummvm-rg350-6e38de3905ec7f5cbbfb991b4a4f960027550b3a.tar.bz2 scummvm-rg350-6e38de3905ec7f5cbbfb991b4a4f960027550b3a.zip |
SCI/newgui: kDrawControl on icon implemented
svn-id: r44658
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui.cpp | 7 | ||||
-rw-r--r-- | engines/sci/gui/gui.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 2baf08c43f..a66f0e9d55 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -281,6 +281,13 @@ void SciGui::drawControlText(Common::Rect rect, reg_t obj, const char *text, int _screen->updateScreen(); } +void SciGui::drawControlIcon(Common::Rect rect, reg_t obj, GuiResourceId viewId, GuiViewLoopNo loopNo, GuiViewCelNo celNo, int16 style, bool inverse) { + _gfx->drawCel(viewId, loopNo, celNo, rect.left, rect.top, 255, 0); + if (style & 0x20) { + _gfx->FrameRect(rect); + } +} + void SciGui::graphFillBoxForeground(Common::Rect rect) { _gfx->PaintRect(rect); _screen->updateScreen(); diff --git a/engines/sci/gui/gui.h b/engines/sci/gui/gui.h index febf5d363d..c172763927 100644 --- a/engines/sci/gui/gui.h +++ b/engines/sci/gui/gui.h @@ -65,6 +65,7 @@ public: virtual void drawCel(GuiResourceId viewId, GuiViewLoopNo loopNo, GuiViewCelNo celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo); virtual void drawControlButton(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 style, bool inverse); virtual void drawControlText(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 mode, int16 style, bool inverse); + virtual void drawControlIcon(Common::Rect rect, reg_t obj, GuiResourceId viewId, GuiViewLoopNo loopNo, GuiViewCelNo celNo, int16 style, bool inverse); virtual void graphFillBoxForeground(Common::Rect rect); virtual void graphFillBoxBackground(Common::Rect rect); |