-Bring back the adaptive sleeping in the main engine. Still using static 20ms sleep in idle waiting loops (when mouse doesn't move)

-Discontinuous freehand now uses an asynchronous method for delaying. It is sensitive to the delay set in the airbrush/spray menu.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@802 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-05-12 22:16:05 +00:00
parent fe637a504c
commit ce812e481d
3 changed files with 43 additions and 18 deletions

View File

@@ -135,7 +135,7 @@ void Button_Message_initial(void)
Display_cursor();
while(!Get_input() && !Mouse_K && !Key) SDL_Delay(20);
while(!Mouse_K && !Key) if(!Get_input()) SDL_Delay(20);
if (Mouse_K)
Wait_end_of_click();