diff --git a/src/console.c b/src/console.c index f01e1824c..6f21aeb3d 100644 --- a/src/console.c +++ b/src/console.c @@ -484,6 +484,19 @@ void CON_Init(void) Unlock_state(); } } + +void CON_StartRefresh(void) +{ + if (con_startup) + con_refresh = true; +} + +void CON_StopRefresh(void) +{ + if (con_startup) + con_refresh = false; +} + // Console input initialization // static void CON_InputInit(void) diff --git a/src/console.h b/src/console.h index 28f40d308..accf89d96 100644 --- a/src/console.h +++ b/src/console.h @@ -16,6 +16,9 @@ void CON_Init(void); +void CON_StartRefresh(void); +void CON_StopRefresh(void); + boolean CON_Responder(event_t *ev); #ifdef HAVE_THREADS diff --git a/src/d_main.c b/src/d_main.c index b4b668f4b..679a596b3 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1358,10 +1358,14 @@ void D_SRB2Main(void) I_RegisterSysCommands(); + CON_StopRefresh(); // Temporarily stop refreshing the screen for wad loading + CONS_Printf("W_InitMultipleFiles(): Adding extra PWADs.\n"); W_InitMultipleFiles(startuppwads); D_CleanFile(startuppwads); + CON_StartRefresh(); // Restart the refresh! + CONS_Printf("HU_LoadGraphics()...\n"); HU_LoadGraphics();