diff options
Diffstat (limited to 'engines/agi/graphics.cpp')
| -rw-r--r-- | engines/agi/graphics.cpp | 16 | 
1 files changed, 7 insertions, 9 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index 58982a2931..eb162e4ab0 100644 --- a/engines/agi/graphics.cpp +++ b/engines/agi/graphics.cpp @@ -18,15 +18,13 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.   * - * $URL$ - * $Id$ - *   */  #include "common/file.h" - +#include "common/textconsole.h"  #include "graphics/cursorman.h" +#include "graphics/palette.h"  #include "agi/agi.h"  #include "agi/graphics.h" @@ -685,14 +683,14 @@ void GfxMgr::drawFrame(int x1, int y1, int x2, int y2, int c1, int c2) {  	}  } -void GfxMgr::drawBox(int x1, int y1, int x2, int y2, int colour1, int colour2, int m) { +void GfxMgr::drawBox(int x1, int y1, int x2, int y2, int color1, int color2, int m) {  	x1 += m;  	y1 += m;  	x2 -= m;  	y2 -= m; -	drawRectangle(x1, y1, x2, y2, colour1); -	drawFrame(x1 + 2, y1 + 2, x2 - 2, y2 - 2, colour2, colour2); +	drawRectangle(x1, y1, x2, y2, color1); +	drawFrame(x1 + 2, y1 + 2, x2 - 2, y2 - 2, color2, color2);  	flushBlock(x1, y1, x2, y2);  } @@ -752,7 +750,7 @@ void GfxMgr::rawDrawButton(int x, int y, const char *s, int fgcolor, int bgcolor  	// Draw a filled rectangle that's larger than the button. Used for drawing  	// a border around the button as the button itself is drawn after this. -	drawRectangle(x1, y1, x2, y2, border ? BUTTON_BORDER : MSG_BOX_COLOUR); +	drawRectangle(x1, y1, x2, y2, border ? BUTTON_BORDER : MSG_BOX_COLOR);  	while (*s) {  		putTextCharacter(0, x + textOffset, y + textOffset, *s++, fgcolor, bgcolor); @@ -843,7 +841,7 @@ void GfxMgr::setAGIPal(int p0) {  	// Use only the lowest 6 bits of each color component (Red, Green and Blue)  	// because VGA used only 6 bits per color component (i.e. VGA had 18-bit colors). -	// This should now be identical to the original AGIPAL-hack's behaviour. +	// This should now be identical to the original AGIPAL-hack's behavior.  	bool validVgaPalette = true;  	for (int i = 0; i < 16 * 3; i++) {  		if (_agipalPalette[i] >= (1 << 6)) {  | 
