aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/graphics.cpp
diff options
context:
space:
mode:
authorStrangerke2013-07-20 11:17:18 +0200
committerStrangerke2013-07-20 18:59:47 +0200
commit8b14677f57b63a36701fa9841027c6f68d476ec0 (patch)
tree784ef9ef02a35a682966874ab0a398744c2c098d /engines/mortevielle/graphics.cpp
parent7fbdf23dc812cfdc08cc9ef84675122847b91c44 (diff)
downloadscummvm-rg350-8b14677f57b63a36701fa9841027c6f68d476ec0.tar.gz
scummvm-rg350-8b14677f57b63a36701fa9841027c6f68d476ec0.tar.bz2
scummvm-rg350-8b14677f57b63a36701fa9841027c6f68d476ec0.zip
MORTEVIELLE: Get rid of magic value 0x7000
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r--engines/mortevielle/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp
index cf15b07ccc..d5036cb4d7 100644
--- a/engines/mortevielle/graphics.cpp
+++ b/engines/mortevielle/graphics.cpp
@@ -937,7 +937,7 @@ void ScreenSurface::drawPicture(GfxSurface &surface, int x, int y) {
(x + surface.w) * 2, (y + surface.h) * 2));
// Get a lookup for the palette mapping
- const byte *paletteMap = &_vm->_mem[0x7000 * 16 + 2];
+ const byte *paletteMap = &_vm->_mem[kAdrPictureComp * 16 + 2];
// Loop through writing
for (int yp = 0; yp < surface.h; ++yp) {
@@ -1108,7 +1108,7 @@ void ScreenSurface::drawString(const Common::String &l, int command) {
pt.x += 1;
pt.y += 1;
- for (x = 1; (x <= l.size()) && (l[x - 1] != 0); ++x) {
+ for (x = 1; (x <= (int)l.size()) && (l[x - 1] != 0); ++x) {
_vm->_screenSurface.writeCharacter(Common::Point(pt.x, pt.y), ord(l[x - 1]), color);
pt.x += charWidth;
}