Fixed all sdl_delays to wait for 20ms, not 1. Avoid problems for low-latency guys.
Also, made the splash screen stay as long as you don't click or key. Mouse moves are discarded. Sorry! git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@800 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
4
misc.c
4
misc.c
@@ -125,7 +125,7 @@ void Wait_end_of_click(void)
|
||||
{
|
||||
// On désactive tous les raccourcis clavier
|
||||
|
||||
while(Mouse_K) if(!Get_input()) SDL_Delay(1);
|
||||
while(Mouse_K) if(!Get_input()) SDL_Delay(20);
|
||||
}
|
||||
|
||||
void Hide_current_image_with_stencil(byte color, byte * stencil)
|
||||
@@ -626,7 +626,7 @@ void Slider_timer(byte speed)
|
||||
end = SDL_GetTicks() + speed*10;
|
||||
do
|
||||
{
|
||||
if (!Get_input()) SDL_Delay(1);
|
||||
if (!Get_input()) SDL_Delay(20);
|
||||
} while (Mouse_K == original_mouse_k && SDL_GetTicks()<end);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user