aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorFilippos Karapetis2015-12-23 22:06:54 +0200
committerWillem Jan Palenstijn2015-12-23 21:43:17 +0100
commit5327b6f545de1031909f09cb459ccc24c5467886 (patch)
tree17250cc4ef6fb660004949c3c4d68a23670bbae4 /engines/lab
parent60f7849c20c07fc9507d89354abb0df3ddfdb62e (diff)
downloadscummvm-rg350-5327b6f545de1031909f09cb459ccc24c5467886.tar.gz
scummvm-rg350-5327b6f545de1031909f09cb459ccc24c5467886.tar.bz2
scummvm-rg350-5327b6f545de1031909f09cb459ccc24c5467886.zip
LAB: Use byte instead of char in overlayRect()
This matches the idea that colors are in range of 0 - 255. Thanks to LordHoto
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/dispman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp
index de2bcc42bf..4e284e5571 100644
--- a/engines/lab/dispman.cpp
+++ b/engines/lab/dispman.cpp
@@ -515,10 +515,10 @@ void DisplayMan::overlayRect(uint16 penColor, uint16 x1, uint16 y1, uint16 x2, u
h = _screenHeight - y1;
if ((w > 0) && (h > 0)) {
- char *d = (char *)getCurrentDrawingBuffer() + y1 * _screenWidth + x1;
+ byte *d = (byte *)getCurrentDrawingBuffer() + y1 * _screenWidth + x1;
while (h-- > 0) {
- char *dd = d;
+ byte *dd = d;
int ww = w;
if (y1 & 1) {