From bb93ecdc5d7119afb5d1d82f3b7d95b81aab2a81 Mon Sep 17 00:00:00 2001 From: Jan Racek Date: Sat, 28 Mar 2026 11:52:15 +0100 Subject: [PATCH] Clear screen on game start --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 4b51300..b924a0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -55,6 +55,14 @@ void PSXSplash::prepare() { // Initialize the Renderer singleton psxsplash::Renderer::Init(gpu()); + // Clear screen + psyqo::Prim::FastFill ff(psyqo::Color{.r = 0, .g = 0, .b = 0}); + ff.rect = psyqo::Rect{0, 0, 320, 240}; + gpu().sendPrimitive(ff); + ff.rect = psyqo::Rect{0, 256, 320, 240}; + gpu().sendPrimitive(ff); + gpu().pumpCallbacks(); + // Let the active file-loader backend do any early setup. // CDRom: CDRomDevice::prepare() must happen here. psxsplash::FileLoader::Get().prepare();