diff options
author | Johannes Schickel | 2013-08-06 03:39:58 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-06 03:51:11 +0200 |
commit | 9179f0b78fc3548b2fdddb97cc6108d0a49e593c (patch) | |
tree | e9298db23a261cb95c77997f08bbb2d5a8cc6844 /backends/platform/psp | |
parent | 09f7e4d5d4d45a4db7c85520be66cf81fe975607 (diff) | |
download | scummvm-rg350-9179f0b78fc3548b2fdddb97cc6108d0a49e593c.tar.gz scummvm-rg350-9179f0b78fc3548b2fdddb97cc6108d0a49e593c.tar.bz2 scummvm-rg350-9179f0b78fc3548b2fdddb97cc6108d0a49e593c.zip |
PSP: Do not access Surface::pixels directly.
Diffstat (limited to 'backends/platform/psp')
-rw-r--r-- | backends/platform/psp/default_display_client.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/backends/platform/psp/default_display_client.cpp b/backends/platform/psp/default_display_client.cpp index bc252144fa..6d6eb641f7 100644 --- a/backends/platform/psp/default_display_client.cpp +++ b/backends/platform/psp/default_display_client.cpp @@ -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; |