[Scummvm-cvs-logs] scummvm master -> 808d622ed5fb6230d5b8ed43c417275d83d0b315

m-kiewitz m_kiewitz at users.sourceforge.net
Wed Feb 10 20:13:58 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
808d622ed5 AGI: Remove unused method


Commit: 808d622ed5fb6230d5b8ed43c417275d83d0b315
    https://github.com/scummvm/scummvm/commit/808d622ed5fb6230d5b8ed43c417275d83d0b315
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-10T20:14:02+01:00

Commit Message:
AGI: Remove unused method

Changed paths:
    engines/agi/graphics.cpp
    engines/agi/graphics.h



diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index af2e8ba..b016515 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 f5a933b..6f6a165 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);






More information about the Scummvm-git-logs mailing list