Clear screen on game start
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user