From d1fa1154fe5758fe48928062ff9b43d1bcfc7770 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sat, 9 Nov 2019 14:52:05 +0000 Subject: BACKENDS: Fix using fillScreen in non-paletted screen modes --- backends/base-backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/base-backend.cpp') diff --git a/backends/base-backend.cpp b/backends/base-backend.cpp index 3e95c3e26a..9164b8d721 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->getPixels()) - memset(screen->getPixels(), col, screen->h * screen->pitch); + if (screen) + screen->fillRect(Common::Rect(screen->w, screen->h), col); unlockScreen(); } -- cgit v1.2.3