diff options
author | Martin Kiewitz | 2016-02-10 20:14:02 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-02-10 20:14:02 +0100 |
commit | 808d622ed5fb6230d5b8ed43c417275d83d0b315 (patch) | |
tree | a817f9c2bbf42eef90dd78cba0c8ce0cd52ec3a3 /engines/agi | |
parent | a7351610a14171740005c1270fb3062f6f6f8729 (diff) | |
download | scummvm-rg350-808d622ed5fb6230d5b8ed43c417275d83d0b315.tar.gz scummvm-rg350-808d622ed5fb6230d5b8ed43c417275d83d0b315.tar.bz2 scummvm-rg350-808d622ed5fb6230d5b8ed43c417275d83d0b315.zip |
AGI: Remove unused method
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/graphics.cpp | 13 | ||||
-rw-r--r-- | engines/agi/graphics.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index af2e8ba499..b0165154c8 100644 --- a/engines/agi/graphics.cpp +++ b/engines/agi/graphics.cpp @@ -592,19 +592,6 @@ void GfxMgr::drawBox(int16 x, int16 y, int16 width, int16 height, byte backgroun } } -// coordinates for visual screen -void GfxMgr::drawRect(int16 x, int16 y, int16 width, int16 height, byte color) { - if (!render_Clip(x, y, width, height, SCRIPT_WIDTH, DISPLAY_HEIGHT - _renderStartOffsetY)) - return; - - // coordinate translation: visual-screen -> display-screen - x = x * 2; - y = y + _renderStartOffsetY; // drawDisplayRect paints anywhere on the whole screen, our coordinate is within playscreen - width = width * 2; // width was given as visual width, we need display width - - drawDisplayRect(x, y, width, height, color); -} - // coordinates are directly for display screen void GfxMgr::drawDisplayRect(int16 x, int16 y, int16 width, int16 height, byte color, bool copyToScreen) { switch (_vm->_renderMode) { diff --git a/engines/agi/graphics.h b/engines/agi/graphics.h index f5a933bf2b..6f6a1656f4 100644 --- a/engines/agi/graphics.h +++ b/engines/agi/graphics.h @@ -126,7 +126,6 @@ public: void copyDisplayToScreen(); void drawBox(int16 x, int16 y, int16 width, int16 height, byte backgroundColor, byte lineColor); - void drawRect(int16 x, int16 y, int16 width, int16 height, byte color); void drawDisplayRect(int16 x, int16 y, int16 width, int16 height, byte color, bool copyToScreen = true); private: void drawDisplayRectEGA(int16 x, int16 y, int16 width, int16 height, byte color); |