diff options
author | Johannes Schickel | 2013-08-03 02:45:42 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:54 +0200 |
commit | 767f0d8ca9114ea05cc1e8c5dc1940cc9718c306 (patch) | |
tree | fe64cce0848f60799d36cb96697b5bf06152362d /backends/base-backend.cpp | |
parent | f386e15b6f6f1862264d3cb79d98bfeebf841480 (diff) | |
download | scummvm-rg350-767f0d8ca9114ea05cc1e8c5dc1940cc9718c306.tar.gz scummvm-rg350-767f0d8ca9114ea05cc1e8c5dc1940cc9718c306.tar.bz2 scummvm-rg350-767f0d8ca9114ea05cc1e8c5dc1940cc9718c306.zip |
BACKENDS: Take advantage of Surface::getPixels.
Diffstat (limited to 'backends/base-backend.cpp')
-rw-r--r-- | backends/base-backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/base-backend.cpp b/backends/base-backend.cpp index f410270d9e..3e95c3e26a 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->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(); } |