SHERLOCK: 3DO: fix setPixels() for RGB565

This commit is contained in:
Martin Kiewitz 2015-06-12 13:30:16 +02:00
parent 3cca918ec7
commit b668b1edd7

View File

@ -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);
}