diff options
author | Martin Kiewitz | 2010-01-07 13:30:08 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-07 13:30:08 +0000 |
commit | 12cd066e442eaedb4eacb575ee961657612be338 (patch) | |
tree | f359b7463027298b8296f273fb17af0e5e4f94ef /engines/sci | |
parent | c37e772b8cde4c120064e4854f06d1e113bd7a39 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |