aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/default_display_client.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 21:14:19 +0200
committerJohannes Schickel2011-04-17 21:14:19 +0200
commit877004dbdd967d2f57d494b1aaa1cb55aae0fd52 (patch)
treefe3630f18560b876300c42d50b2993b7b8da32da /backends/platform/psp/default_display_client.cpp
parent3fd919060ca6bbf896680f3548bfaac020900d42 (diff)
downloadscummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.tar.gz
scummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.tar.bz2
scummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.zip
BACKENDS: Adapt various backends code to set up Surface::format correctly.
Note that this change is not tested at all (not even compile wise!).
Diffstat (limited to 'backends/platform/psp/default_display_client.cpp')
-rw-r--r--backends/platform/psp/default_display_client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/platform/psp/default_display_client.cpp b/backends/platform/psp/default_display_client.cpp
index bb42406c3e..cab9c15926 100644
--- a/backends/platform/psp/default_display_client.cpp
+++ b/backends/platform/psp/default_display_client.cpp
@@ -200,6 +200,7 @@ Graphics::Surface *Screen::lockAndGetForEditing() {
_frameBuffer.h = _buffer.getSourceHeight();
_frameBuffer.pitch = _buffer.getBytesPerPixel() * _buffer.getWidth();
_frameBuffer.bytesPerPixel = _buffer.getBytesPerPixel();
+ _frameBuffer.format = _pixelFormat;
// We'll set to dirty once we unlock the screen
return &_frameBuffer;