aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-06 03:30:38 +0200
committerJohannes Schickel2013-08-06 03:30:38 +0200
commit6639958d7af352db5f500292b3c0398a3c0579b0 (patch)
treebc5716e149d5ce6d31be44e46d326221cf96f5cc /backends/platform
parent0f050fe797f2f7d0b5da65f443142c0ffdd006ce (diff)
downloadscummvm-rg350-6639958d7af352db5f500292b3c0398a3c0579b0.tar.gz
scummvm-rg350-6639958d7af352db5f500292b3c0398a3c0579b0.tar.bz2
scummvm-rg350-6639958d7af352db5f500292b3c0398a3c0579b0.zip
PS2: Do not access Surface::pixels directly.
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/ps2/Gs2dScreen.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/backends/platform/ps2/Gs2dScreen.cpp b/backends/platform/ps2/Gs2dScreen.cpp
index e818305c29..58667c0230 100644
--- a/backends/platform/ps2/Gs2dScreen.cpp
+++ b/backends/platform/ps2/Gs2dScreen.cpp
@@ -392,12 +392,8 @@ void Gs2dScreen::copyScreenRect(const uint8 *buf, int pitch, int x, int y, int w
Graphics::Surface *Gs2dScreen::lockScreen() {
WaitSema(g_DmacSema);
- _framebuffer.pixels = _screenBuf;
- _framebuffer.w = _width;
- _framebuffer.h = _height;
- _framebuffer.pitch = _width; // -not- _pitch; ! It's EE mem, not Tex
- _framebuffer.format = Graphics::PixelFormat::createFormatCLUT8();
-
+ // -not- _pitch; ! It's EE mem, not Tex
+ _framebuffer.init(_width, _height, _width, _screenBuf, Graphics::PixelFormat::createFormatCLUT8());
return &_framebuffer;
}