From 994604527b15dbe129b5c91f26da8840f3519199 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Tue, 16 Jan 2007 09:24:13 +0000 Subject: Finish restructuring font data header for const correctness. svn-id: r25100 --- engines/agi/graphics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/agi/graphics.cpp') diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index 9f9df96bfe..29c1639d4a 100644 --- a/engines/agi/graphics.cpp +++ b/engines/agi/graphics.cpp @@ -39,7 +39,7 @@ namespace Agi { # define MAX_INT (int)((unsigned)~0 >> 1) #endif -extern uint8 cur_font[]; +#include "agi/font.h" /** * 16 color RGB palette (plus 16 transparent colors). @@ -187,9 +187,9 @@ void GfxMgr::shakeEnd() { void GfxMgr::putTextCharacter(int l, int x, int y, unsigned int c, int fg, int bg, bool checkerboard) { int x1, y1, xx, yy, cc; - uint8 *p; + const uint8 *p; - p = cur_font + ((unsigned int)c * CHAR_LINES); + p = Agi::cur_font + ((unsigned int)c * CHAR_LINES); for (y1 = 0; y1 < CHAR_LINES; y1++) { for (x1 = 0; x1 < CHAR_COLS; x1++) { xx = x + x1; -- cgit v1.2.3