diff options
author | Paul Gilbert | 2016-09-22 20:00:04 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-22 20:00:04 -0400 |
commit | 4515d7a1ac119edfa9bfce90655cab2d4d279582 (patch) | |
tree | 59f63f7750a5ea4b7a01811c8a46422a3fad8a91 /engines/xeen/font.cpp | |
parent | edaf645ae044b620e7c2fe9d20e204ed6c579cd4 (diff) | |
download | scummvm-rg350-4515d7a1ac119edfa9bfce90655cab2d4d279582.tar.gz scummvm-rg350-4515d7a1ac119edfa9bfce90655cab2d4d279582.tar.bz2 scummvm-rg350-4515d7a1ac119edfa9bfce90655cab2d4d279582.zip |
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
Diffstat (limited to 'engines/xeen/font.cpp')
-rw-r--r-- | engines/xeen/font.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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]); } |