Lines will refresh instantly when you press shift, but, strangely, not when you release it.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@400 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
2825350f17
commit
fb6d1100dc
29
operatio.c
29
operatio.c
@ -451,15 +451,19 @@ void Ligne_12_5(void)
|
||||
|
||||
Operation_POP(&Fin_Y);
|
||||
Operation_POP(&Fin_X);
|
||||
Operation_POP(&Debut_Y);
|
||||
Operation_POP(&Debut_X);
|
||||
|
||||
// On corrige les coordonnées de la ligne si la touche shift est appuyée...
|
||||
if(SDL_GetModState() & KMOD_SHIFT)
|
||||
{
|
||||
Rectifier_coordonnees_a_45_degres(Debut_X,Debut_Y,&Pinceau_X,&Pinceau_Y);
|
||||
}
|
||||
|
||||
// On vient de bouger
|
||||
if ((Pinceau_X!=Fin_X) || (Pinceau_Y!=Fin_Y))
|
||||
{
|
||||
Effacer_curseur();
|
||||
Operation_POP(&Debut_Y);
|
||||
Operation_POP(&Debut_X);
|
||||
// On corrige les coordonnées de la ligne si la touche shift est appuyée...
|
||||
if(SDL_GetModState() & KMOD_SHIFT)
|
||||
Rectifier_coordonnees_a_45_degres(Debut_X,Debut_Y,&Pinceau_X,&Pinceau_Y);
|
||||
Effacer_curseur();
|
||||
|
||||
Aff_coords_rel_ou_abs(Debut_X,Debut_Y);
|
||||
|
||||
@ -477,11 +481,18 @@ void Ligne_12_5(void)
|
||||
|
||||
Operation_PUSH(Debut_X);
|
||||
Operation_PUSH(Debut_Y);
|
||||
Operation_PUSH(Pinceau_X);
|
||||
Operation_PUSH(Pinceau_Y);
|
||||
|
||||
Afficher_curseur();
|
||||
}
|
||||
|
||||
Operation_PUSH(Pinceau_X);
|
||||
Operation_PUSH(Pinceau_Y);
|
||||
else
|
||||
{
|
||||
Operation_PUSH(Debut_X);
|
||||
Operation_PUSH(Debut_Y);
|
||||
Operation_PUSH(Fin_X);
|
||||
Operation_PUSH(Fin_Y);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user