aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/graphics.cpp13
-rw-r--r--engines/agi/graphics.h1
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);