Removed Wait_VBL. Was only used for slowing down things. Used SDL_Delay(1) instead, which let the OS handle other things. We should get about 10-20ms latency with that. Scrollbars may be slightly faster. The only place where this could be a problem is discontinuous freehand. If the current way it works isn't good, look at the "Chrono" functions (like the spray) instead.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@799 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-05-12 18:00:19 +00:00
parent 7a847be4ec
commit 3c0a940301
7 changed files with 18 additions and 41 deletions

View File

@@ -181,7 +181,7 @@ byte Readline_ex(word x_pos,word y_pos,char * str,byte visible_size,byte max_siz
Display_cursor();
do
{
if(!Get_input()) Wait_VBL();
if(!Get_input()) SDL_Delay(1);
input_key=Key_ANSI;
} while(input_key==0);
Hide_cursor();