aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-06 03:44:20 +0200
committerJohannes Schickel2013-08-06 03:51:12 +0200
commit30d2eb7a97ac744e767fb6d48cc2419928312afe (patch)
tree4b71be82fc7e59984d40a676eff0fc36888d298a /backends/platform
parentd9b90d67d3145147f90ed0dd9b53e7c3928f78ba (diff)
downloadscummvm-rg350-30d2eb7a97ac744e767fb6d48cc2419928312afe.tar.gz
scummvm-rg350-30d2eb7a97ac744e767fb6d48cc2419928312afe.tar.bz2
scummvm-rg350-30d2eb7a97ac744e767fb6d48cc2419928312afe.zip
DC: Do not access Surface::pixels directly.
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/dc/display.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/backends/platform/dc/display.cpp b/backends/platform/dc/display.cpp
index cc5798fc10..54ee6000ed 100644
--- a/backends/platform/dc/display.cpp
+++ b/backends/platform/dc/display.cpp
@@ -711,11 +711,7 @@ Graphics::Surface *OSystem_Dreamcast::lockScreen()
if (!screen)
return 0;
- _framebuffer.pixels = screen;
- _framebuffer.w = _screen_w;
- _framebuffer.h = _screen_h;
- _framebuffer.pitch = SCREEN_W*2;
- _framebuffer.format = screenFormats[_screenFormat];
+ _framebuffer.init(_screen_w, _screen_h, SCREEN_W*2, screen, screenFormats[_screenFormat]);
return &_framebuffer;
}