aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 01:27:41 +0200
committerJohannes Schickel2013-08-03 04:02:49 +0200
commit55afab4d68454a2ea18da39e0c0c856424ecfb46 (patch)
treead09581a1df536243c85e2e13411e46317f7bfc4
parent103e926c0765c45267c1cfac0eb07a201e5084bd (diff)
downloadscummvm-rg350-55afab4d68454a2ea18da39e0c0c856424ecfb46.tar.gz
scummvm-rg350-55afab4d68454a2ea18da39e0c0c856424ecfb46.tar.bz2
scummvm-rg350-55afab4d68454a2ea18da39e0c0c856424ecfb46.zip
BACKENDS: Prefer getBasePtr over direct Surface::pixels access.
-rw-r--r--backends/base-backend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/base-backend.cpp b/backends/base-backend.cpp
index 3e0005dedd..f410270d9e 100644
--- a/backends/base-backend.cpp
+++ b/backends/base-backend.cpp
@@ -57,7 +57,7 @@ void BaseBackend::initBackend() {
void BaseBackend::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();
}