From b7706acb4107b6dd6b562062f1d20720e0560f9e Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 3 Aug 2013 01:40:57 +0200 Subject: SDL: Prefer getBasePtr over direct Surface::pixels access. --- backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/graphics') diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index a2e1981e79..e36e43b05e 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -1340,8 +1340,8 @@ void SurfaceSdlGraphicsManager::unlockScreen() { void SurfaceSdlGraphicsManager::fillScreen(uint32 col) { Graphics::Surface *screen = lockScreen(); - if (screen && screen->pixels) - memset(screen->pixels, col, screen->h * screen->pitch); + if (screen && screen->getBasePtr(0, 0)) + memset(screen->getBasePtr(0, 0), col, screen->h * screen->pitch); unlockScreen(); } -- cgit v1.2.3