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();