diff options
author | uruk | 2013-08-12 12:52:17 +0200 |
---|---|---|
committer | uruk | 2013-08-12 12:52:17 +0200 |
commit | d8798e978a695a1b6ebd853bd05790d11c5fe4f9 (patch) | |
tree | d2973072704415ec3b7f4a7df0ad5c120051007b /engines/avalanche | |
parent | 14076ad0e9daeac9e29349920d3948d59b5340a9 (diff) | |
download | scummvm-rg350-d8798e978a695a1b6ebd853bd05790d11c5fe4f9.tar.gz scummvm-rg350-d8798e978a695a1b6ebd853bd05790d11c5fe4f9.tar.bz2 scummvm-rg350-d8798e978a695a1b6ebd853bd05790d11c5fe4f9.zip |
AVALANCHE: Repair Graphics::drawText() and Scrolls::say().
Diffstat (limited to 'engines/avalanche')
-rw-r--r-- | engines/avalanche/graphics.cpp | 2 | ||||
-rw-r--r-- | engines/avalanche/scrolls2.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp index 4b30f6fdb2..0b3a26495c 100644 --- a/engines/avalanche/graphics.cpp +++ b/engines/avalanche/graphics.cpp @@ -252,7 +252,7 @@ void Graphics::drawTriangle(::Graphics::Surface &surface, Common::Point *p, byte void Graphics::drawText(::Graphics::Surface &surface, const Common::String &text, fontType font, byte fontHeight, int16 x, int16 y, byte color) { for (byte i = 0; i < text.size(); i++) for (byte j = 0; j < fontHeight; j++) { - byte pixel = font[text[i]][j]; + byte pixel = font[(byte)text[i]][j]; for (byte bit = 0; bit < 8; bit++) { byte pixelBit = (pixel >> bit) & 1; if (pixelBit) diff --git a/engines/avalanche/scrolls2.cpp b/engines/avalanche/scrolls2.cpp index 93d942afdb..99bef8e982 100644 --- a/engines/avalanche/scrolls2.cpp +++ b/engines/avalanche/scrolls2.cpp @@ -123,7 +123,7 @@ void Scrolls::say(int16 x, int16 y, Common::String z) { /* Fancy FAST screenwrit break; default: { for (byte yy = 0; yy < 12; yy++) - itw[z[xx]][yy] = ch[cfont][z[xx]][yy + 2]; + itw[(byte)z[xx]][yy] = ch[cfont][(byte)z[xx]][yy + 2]; text += z[xx]; @@ -857,7 +857,7 @@ void Scrolls::loadfont() { return; } for (int16 i = 0; i < 256; i++) - f.read(ch[0][i],16); + f.read(ch[0][i], 16); f.close(); if (!f.open("avitalic.fnt")) { @@ -865,7 +865,7 @@ void Scrolls::loadfont() { return; } for (int16 i = 0; i < 256; i++) - f.read(ch[1][i],16); + f.read(ch[1][i], 16); f.close(); if (!f.open("ttsmall.fnt")) { |