Skip to content

Commit

Permalink
DC: Do not access Surface::pixels directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Aug 6, 2013
1 parent d9b90d6 commit 30d2eb7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backends/platform/dc/display.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30d2eb7

Please sign in to comment.