Lost in merge: e95216b5
This commit is contained in:
Jonathan G Rennison
2021-02-21 12:25:43 +00:00
parent 2221805ddd
commit c9ab460a03

View File

@@ -1551,7 +1551,7 @@ void DrawDirtyBlocks()
_modal_progress_work_mutex.unlock();
/* Wait a while and hope the modal gives us a bit of time to draw the GUI. */
if (!is_first_modal_progress_loop) CSleep(MODAL_PROGRESS_REDRAW_TIMEOUT);
if (!is_first_modal_progress_loop) SleepWhileModalProgress(MODAL_PROGRESS_REDRAW_TIMEOUT);
/* Modal progress thread may need blitter access while we are waiting for it. */
VideoDriver::GetInstance()->ReleaseBlitterLock();