(svn r18390) -Fix (r17776): [SDL] Reinstate pointer update on 'idle' loop.

This commit is contained in:
peter1138 2009-12-03 08:24:39 +00:00
parent f49c1dcd78
commit 57bcb5f903

View File

@ -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();
}
}