diff --git a/src/3rdparty/win32_src/pdcurses/pdcutil.c b/src/3rdparty/win32_src/pdcurses/pdcutil.c index 5a7a718ed..54b9858cf 100644 --- a/src/3rdparty/win32_src/pdcurses/pdcutil.c +++ b/src/3rdparty/win32_src/pdcurses/pdcutil.c @@ -16,10 +16,10 @@ void PDC_napms(int ms) /* 'ms' = milli, _not_ microseconds! */ { /* RR: keep GUI window responsive while PDCurses sleeps */ MSG msg; - int start, end, sleepMs; + DWORD start, end, delta; extern bool PDC_bDone; - start = (int) GetTickCount(); + start = GetTickCount(); //PDC_LOG(("PDC_napms() - called: ms=%d\n", ms)); @@ -30,10 +30,10 @@ void PDC_napms(int ms) /* 'ms' = milli, _not_ microseconds! */ DispatchMessage(&msg); } - end = (int) GetTickCount(); - sleepMs = ms - (end - start); - sleepMs = (sleepMs < 0) ? 0 : sleepMs; - Sleep((DWORD) sleepMs); + end = GetTickCount(); + delta = end - start; + delta = ms > delta ? ms - delta : 0; + Sleep(delta); } const char *PDC_sysname(void) diff --git a/src/musikbox/musikbox.rc b/src/musikbox/musikbox.rc index 7c9da7b12..7ea5a4305 100644 Binary files a/src/musikbox/musikbox.rc and b/src/musikbox/musikbox.rc differ