From 4668faf3c04cd17269f727e1830f86ee881093d6 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Fri, 29 Dec 2023 17:51:53 +0000 Subject: [PATCH] M4: Use OSystem::fillScreen() where possible --- engines/m4/gui/gui_vmng_screen.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engines/m4/gui/gui_vmng_screen.cpp b/engines/m4/gui/gui_vmng_screen.cpp index a7d6d24bc31..f33bfa07a71 100644 --- a/engines/m4/gui/gui_vmng_screen.cpp +++ b/engines/m4/gui/gui_vmng_screen.cpp @@ -212,10 +212,8 @@ bool ResizeScreen(void *scrnContent, int32 newW, int32 newH) { } static void vmng_black_out_video(int32 x1, int32 y1, int32 x2, int32 y2) { - Graphics::Surface *screen = g_system->lockScreen(); Common::Rect r(x1, y1, x2 + 1, y2 + 1); - screen->fillRect(r, 0); - g_system->unlockScreen(); + g_system->fillScreen(r, 0); } bool AddScreenHotkey(void *scrnContent, int32 myKey, HotkeyCB callback) {