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:
@@ -300,7 +300,7 @@ void Freehand_mode2_1_0(void)
|
||||
Operation_push(Paintbrush_X);
|
||||
Operation_push(Paintbrush_Y);
|
||||
Print_coordinates();
|
||||
Wait_VBL();
|
||||
SDL_Delay(20);
|
||||
}
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ void Freehand_mode2_1_2(void)
|
||||
Display_paintbrush(Paintbrush_X,Paintbrush_Y,Fore_color,0);
|
||||
Display_cursor();
|
||||
Print_coordinates();
|
||||
Wait_VBL();
|
||||
SDL_Delay(20);
|
||||
}
|
||||
|
||||
Operation_push(Paintbrush_X);
|
||||
@@ -347,7 +347,7 @@ void Freehand_mode2_2_0(void)
|
||||
Operation_push(Paintbrush_X);
|
||||
Operation_push(Paintbrush_Y);
|
||||
Print_coordinates();
|
||||
Wait_VBL();
|
||||
SDL_Delay(20);
|
||||
}
|
||||
|
||||
|
||||
@@ -371,7 +371,7 @@ void Freehand_mode2_2_2(void)
|
||||
Display_paintbrush(Paintbrush_X,Paintbrush_Y,Back_color,0);
|
||||
Display_cursor();
|
||||
Print_coordinates();
|
||||
Wait_VBL();
|
||||
SDL_Delay(20);
|
||||
}
|
||||
|
||||
Operation_push(Paintbrush_X);
|
||||
|
||||
Reference in New Issue
Block a user