diff options
-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; } |