From b668b1edd724b8c281edacb68665cd037c5d9bd2 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 12 Jun 2015 13:30:16 +0200 Subject: SHERLOCK: 3DO: fix setPixels() for RGB565 --- engines/sherlock/surface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp index 8f3690b108..48045beacd 100644 --- a/engines/sherlock/surface.cpp +++ b/engines/sherlock/surface.cpp @@ -270,8 +270,9 @@ void Surface::free() { void Surface::setPixels(byte *pixels, int width, int height, Graphics::PixelFormat pixelFormat) { _surface.format = pixelFormat; - _surface.w = _surface.pitch = width; + _surface.w = width; _surface.h = height; + _surface.pitch = width * pixelFormat.bytesPerPixel; _surface.setPixels(pixels); } -- cgit v1.2.3