From 70179db81e5a7fff78b558de9f39521c44a16886 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 24 Aug 2011 12:18:53 +0000 Subject: (svn r22820) -Codechange: perform a full (re)draw cycle in the first draw during progress instead of waiting 200ms --- src/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gfx.cpp') diff --git a/src/gfx.cpp b/src/gfx.cpp index 88943534c..c5fbcac2f 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -1561,7 +1561,7 @@ void DrawDirtyBlocks() _modal_progress_work_mutex->EndCritical(); /* Wait a while and update _realtime_tick so we are given the rights */ - CSleep(MODAL_PROGRESS_REDRAW_TIMEOUT); + if (!IsFirstModalProgressLoop()) CSleep(MODAL_PROGRESS_REDRAW_TIMEOUT); _realtime_tick += MODAL_PROGRESS_REDRAW_TIMEOUT; _modal_progress_paint_mutex->BeginCritical(); _modal_progress_work_mutex->BeginCritical(); -- cgit v1.2.3-54-g00ecf