BACKENDS: Prefer getBasePtr over direct Surface::pixels access.

This commit is contained in:
Johannes Schickel committed 2013-08-03 04:02:49 +02:00
1 parent 103e926c07
commit 55afab4d68
1 file changed
+2 -2
+2 -2
View File
@@ -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();
}