mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-03 07:59:38 +00:00
SHERLOCK: 3DO: fix setPixels() for RGB565
This commit is contained in:
parent
3cca918ec7
commit
b668b1edd7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user