aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:45:32 +0200
committerJohannes Schickel2013-08-03 04:02:54 +0200
commitf386e15b6f6f1862264d3cb79d98bfeebf841480 (patch)
tree63e79b84d32eec7145234a15462ef08333f7d038
parent79c124842bae01e2be82192f23001bec5c55710b (diff)
downloadscummvm-rg350-f386e15b6f6f1862264d3cb79d98bfeebf841480.tar.gz
scummvm-rg350-f386e15b6f6f1862264d3cb79d98bfeebf841480.tar.bz2
scummvm-rg350-f386e15b6f6f1862264d3cb79d98bfeebf841480.zip
SDL: Take advantage of Surface::getPixels.
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index e36e43b05e..860ed0f4a3 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->getBasePtr(0, 0))
- memset(screen->getBasePtr(0, 0), col, screen->h * screen->pitch);
+ if (screen && screen->getPixels())
+ memset(screen->getPixels(), col, screen->h * screen->pitch);
unlockScreen();
}