Now idles when there is nothing to do. Much less CPUtime use, but the spray is slowed down. We need to improve the handling of Get_input in Gestion_principale.
Get_input now returns 1 if something happened, and 0 if not. So we can chose what to do depending on that. We should try not to wait if the operation needs to be asynchronous, but there is no way to know that for now, and it may be quite complex to determine (i think the shade effect can be asynchronous for example, so it'll affect pretty much all operations). The other solution would be to drop events to react to the more recent ones. It would look smoother but the mouse will do strange things. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@378 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
2
divers.h
2
divers.h
@@ -25,7 +25,7 @@ void Permuter_dans_l_image_les_couleurs(byte Couleur_1,byte Couleur_2);
|
||||
void Remap_general_LOWLEVEL(byte * Table_conv,byte * Buffer,short Largeur,short Hauteur,short Largeur_buffer);
|
||||
void Scroll_picture(short Decalage_X,short Decalage_Y);
|
||||
void Set_mouse_video_mode_number(void);
|
||||
void Get_input(void);
|
||||
int Get_input(void);
|
||||
void Set_mouse_position(void);
|
||||
void Attendre_fin_de_click(void);
|
||||
void Sensibilite_souris(word X,word Y);
|
||||
|
||||
Reference in New Issue
Block a user