Clear screen on game start

This commit is contained in:
2026-03-28 11:52:15 +01:00
parent b01b72751a
commit bb93ecdc5d

View File

@@ -55,6 +55,14 @@ void PSXSplash::prepare() {
// Initialize the Renderer singleton // Initialize the Renderer singleton
psxsplash::Renderer::Init(gpu()); 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. // Let the active file-loader backend do any early setup.
// CDRom: CDRomDevice::prepare() must happen here. // CDRom: CDRomDevice::prepare() must happen here.
psxsplash::FileLoader::Get().prepare(); psxsplash::FileLoader::Get().prepare();