aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-06 03:45:13 +0200
committerJohannes Schickel2013-08-06 03:51:12 +0200
commitc28f3baa7745453945e2ddd1f9fc474830b1e97b (patch)
treefba4aa5eadc2573a53812d6cf61d4c8bd5e46b88 /backends
parent30d2eb7a97ac744e767fb6d48cc2419928312afe (diff)
downloadscummvm-rg350-c28f3baa7745453945e2ddd1f9fc474830b1e97b.tar.gz
scummvm-rg350-c28f3baa7745453945e2ddd1f9fc474830b1e97b.tar.bz2
scummvm-rg350-c28f3baa7745453945e2ddd1f9fc474830b1e97b.zip
N64: Do not access Surface::pixels anymore.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/n64/osys_n64_base.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/backends/platform/n64/osys_n64_base.cpp b/backends/platform/n64/osys_n64_base.cpp
index afd93f5e09..36e5085764 100644
--- a/backends/platform/n64/osys_n64_base.cpp
+++ b/backends/platform/n64/osys_n64_base.cpp
@@ -605,11 +605,7 @@ void OSystem_N64::updateScreen() {
}
Graphics::Surface *OSystem_N64::lockScreen() {
- _framebuffer.pixels = _offscreen_pal;
- _framebuffer.w = _gameWidth;
- _framebuffer.h = _gameHeight;
- _framebuffer.pitch = _screenWidth;
- _framebuffer.format = Graphics::PixelFormat::createFormatCLUT8();
+ _framebuffer.init(_gameWidth, _gameHeight, _screenWidth, _offscreen_pal, Graphics::PixelFormat::createFormatCLUT8());
return &_framebuffer;
}