From cf51a7a7dc147346e439f62a57becaa11a03740f Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Wed, 5 Nov 2025 02:22:25 +0530 Subject: Prevent splash screens from being closeable Removed the WindowShouldClose() check from the splash screen loop to prevent users from closing the splash screens prematurely. Previously, users could press ESC or click the X button during splash screens, which would skip to the game but create confusion since it didn't actually exit the application. Now splash screens play through completely for a consistent user experience. Developers can still skip splashes using the --no-logo flag. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index d4d8fd2..72dbdca 100644 --- a/src/main.c +++ b/src/main.c @@ -142,7 +142,7 @@ int main( int argn, const char** argc ) { splashInit(); bool splashDone = false; - while ( !splashDone && !WindowShouldClose() ) { + while ( !splashDone ) { float delta = GetFrameTime(); splashDone = splashUpdate( delta ); splashDraw(); -- cgit v1.2.3