From d0b81d8eff64f437ca9404f81a727fa1f003adf1 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 28 Aug 2021 12:59:27 -0700 Subject: [PATCH] Simplify clearing surface in preloader with ClearSurface() It conveys intent better. --- desktop_version/src/preloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/preloader.cpp b/desktop_version/src/preloader.cpp index 9105b275..08c48b4b 100644 --- a/desktop_version/src/preloader.cpp +++ b/desktop_version/src/preloader.cpp @@ -114,7 +114,7 @@ void preloaderrender(void) }else if (pre_transition < 20) { pre_temprecty = 0; pre_temprecth = 240; - FillRect(graphics.backBuffer, pre_temprectx, pre_temprecty, pre_temprectw,pre_temprecth, 0x000000); + ClearSurface(graphics.backBuffer); FillRect(graphics.backBuffer, pre_frontrectx, pre_frontrecty, pre_frontrectw,pre_frontrecth, graphics.getBGR(0x3E,0x31,0xA2)); graphics.Print(282-(15*8), 204, "LOADING... 100%", 124, 112, 218, false);