Mercurial > hg > openttd
changeset 13861:c2ec8545efe6 draft
(svn r18390) -Fix (r17776): [SDL] Reinstate pointer update on 'idle' loop.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 03 Dec 2009 08:24:39 +0000 |
parents | 99221d89bb23 |
children | 90fbb5c8a162 |
files | src/video/sdl_v.cpp |
diffstat | 1 files changed, 12 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -593,19 +593,23 @@ 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(); } }