From 3addf58f30c2dd4fa850611af11d7a897989722b Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 3 Dec 2009 08:24:39 +0000 Subject: (svn r18390) -Fix (r17776): [SDL] Reinstate pointer update on 'idle' loop. --- src/video/sdl_v.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index f9ef164c0..1af499d0a 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -593,19 +593,23 @@ void VideoDriver_SDL::MainLoop() CheckPaletteAnim(); pal_tick = 1; } - - /* End of the critical part. */ - if (_draw_threaded && !IsGeneratingWorld()) { - _draw_mutex->SendSignal(); - } else { - /* Oh, we didn't have threads, then just draw unthreaded */ - DrawSurfaceToScreen(); - } } else { /* Release the thread while sleeping */ if (_draw_threaded) _draw_mutex->EndCritical(); CSleep(1); if (_draw_threaded) _draw_mutex->BeginCritical(); + + _screen.dst_ptr = _sdl_screen->pixels; + NetworkDrawChatMessage(); + DrawMouseCursor(); + } + + /* End of the critical part. */ + if (_draw_threaded && !IsGeneratingWorld()) { + _draw_mutex->SendSignal(); + } else { + /* Oh, we didn't have threads, then just draw unthreaded */ + DrawSurfaceToScreen(); } } -- cgit v1.2.3-70-g09d2