diff options
Diffstat (limited to 'backends/platform')
| -rw-r--r-- | backends/platform/ps2/Gs2dScreen.cpp | 8 | 
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;  }  | 
