From 808d622ed5fb6230d5b8ed43c417275d83d0b315 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 10 Feb 2016 20:14:02 +0100 Subject: AGI: Remove unused method --- engines/agi/graphics.cpp | 13 ------------- engines/agi/graphics.h | 1 - 2 files changed, 14 deletions(-) (limited to 'engines/agi') 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); -- cgit v1.2.3