mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
PSP: Do not access Surface::pixels directly.
This commit is contained in:
parent
09f7e4d5d4
commit
9179f0b78f
@ -192,11 +192,8 @@ void Screen::setScummvmPixelFormat(const Graphics::PixelFormat *format) {
|
||||
Graphics::Surface *Screen::lockAndGetForEditing() {
|
||||
DEBUG_ENTER_FUNC();
|
||||
|
||||
_frameBuffer.pixels = _buffer.getPixels();
|
||||
_frameBuffer.w = _buffer.getSourceWidth();
|
||||
_frameBuffer.h = _buffer.getSourceHeight();
|
||||
_frameBuffer.pitch = _buffer.getBytesPerPixel() * _buffer.getWidth();
|
||||
_frameBuffer.format = _pixelFormat;
|
||||
_frameBuffer.init(_buffer.getSourceWidth(), _buffer.getSourceHeight(), _buffer.getBytesPerPixel() * _buffer.getWidth(),
|
||||
_buffer.getPixels(), _pixelFormat);
|
||||
// We'll set to dirty once we unlock the screen
|
||||
|
||||
return &_frameBuffer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user