aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-07 13:30:08 +0000
committerMartin Kiewitz2010-01-07 13:30:08 +0000
commit12cd066e442eaedb4eacb575ee961657612be338 (patch)
treef359b7463027298b8296f273fb17af0e5e4f94ef /engines/sci
parentc37e772b8cde4c120064e4854f06d1e113bd7a39 (diff)
downloadscummvm-rg350-12cd066e442eaedb4eacb575ee961657612be338.tar.gz
scummvm-rg350-12cd066e442eaedb4eacb575ee961657612be338.tar.bz2
scummvm-rg350-12cd066e442eaedb4eacb575ee961657612be338.zip
SCI: fixed stupid bug in putPixelOnDisplay, fixes height of displayed hires graphics in kq6
svn-id: r47107
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index 18bea149f8..6260645f53 100644
--- a/engines/sci/graphics/screen.cpp
+++ b/engines/sci/graphics/screen.cpp
@@ -156,7 +156,7 @@ void Screen::putPixel(int x, int y, byte drawMask, byte color, byte priority, by
// This will just change a pixel directly on displayscreen. Its supposed to get only used on upscaled-Hires games where
// hires content needs to get drawn ONTO the upscaled display screen (like japanese fonts, hires portraits, etc.)
void Screen::putPixelOnDisplay(int x, int y, byte color) {
- int offset = y * _width + x;
+ int offset = y * _displayWidth + x;
_displayScreen[offset] = color;
}