From 4515d7a1ac119edfa9bfce90655cab2d4d279582 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 22 Sep 2016 20:00:04 -0400 Subject: XEEN: Create Resources class to encapsulate all the static resources This will make it easier later on to handle things like translations, and if the other games have different values for some arrays --- engines/xeen/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/xeen/font.cpp') diff --git a/engines/xeen/font.cpp b/engines/xeen/font.cpp index 87e16b5bdd..459a334da0 100644 --- a/engines/xeen/font.cpp +++ b/engines/xeen/font.cpp @@ -38,7 +38,7 @@ FontSurface::FontSurface(int wv, int hv) : XSurface(wv, hv), _fontData(nullptr), } void FontSurface::writeSymbol(int symbolId) { - const byte *srcP = &SYMBOLS[symbolId][0]; + const byte *srcP = &Res.SYMBOLS[symbolId][0]; for (int yp = 0; yp < FONT_HEIGHT; ++yp) { byte *destP = (byte *)getBasePtr(_writePos.x, _writePos.y + yp); @@ -306,7 +306,7 @@ int FontSurface::fontAtoi(int len) { } void FontSurface::setTextColor(int idx) { - const byte *colP = &TEXT_COLORS[idx][0]; + const byte *colP = &Res.TEXT_COLORS[idx][0]; Common::copy(colP, colP + 4, &_textColors[0]); } -- cgit v1.2.3