Skip to content

Commit

Permalink
-Change: update screen during loading of a game
Browse files Browse the repository at this point in the history
call sleepIdle() a few times

Signed-off-by: Thomas Bernard <[email protected]>
  • Loading branch information
miniupnp committed May 25, 2018
1 parent d8f10a6 commit d448353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "types.h"
#include "../os/common.h"
#include "../os/strings.h"
#include "../os/sleep.h"

#include "sound.h"

Expand Down Expand Up @@ -234,6 +235,7 @@ void Voice_LoadVoices(uint16 voiceSet)
for (voice = 0; voice < NUM_VOICES; voice++) {
char filename[16];
const char *str = g_table_voices[voice].string;
sleepIdle(); /* let a chance to update screen, etc. */
switch (*str) {
case '%':
if (g_voiceData[voice] != NULL ||
Expand Down
2 changes: 2 additions & 0 deletions src/opendune.c
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,8 @@ void Game_Init(void)
g_structureActiveType = 0xFFFF;

GUI_DisplayText(NULL, -1);

sleepIdle(); /* let the game a chance to update screen, etc. */
}

/**
Expand Down

0 comments on commit d448353

Please sign in to comment.