Started work on the gradiation rectangle.

The handling in the operation engine should work pretty well. I would like to do some changes, however (displaying the bottomright of the rectangle, and use XOR for the vector, for example)
Now, i have to do the real thing, the gradiation calculation and drawing. But let's see that tomorrow...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@299 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-10-21 19:57:25 +00:00
parent 320eb547cd
commit dc9e10c054
9 changed files with 264 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ void Message_Non_disponible(void)
// ne sait pas lequel c'est, on les désenclenche tous. De toutes façons, ça
// ne sert à rien d'essayer d'optimiser ça puisque l'utilisateur ne devrait
// pas souvent l'appeler, et en plus y'en a pas beaucoup à désenclencher. ;)
Desenclencher_bouton(BOUTON_GRADRECT);
// Desenclencher_bouton(BOUTON_GRADRECT);
Desenclencher_bouton(BOUTON_TEXTE);
Afficher_curseur();
@@ -2029,7 +2029,7 @@ void Bouton_Degrades(void)
}
// -- Gestion des boutons de cercle (ellipse) dégradé(e) --------------------
// -- Gestion des boutons de cercle / ellipse / rectangle dégradés --------------------
void Bouton_Cercle_degrade(void)
{
@@ -2047,6 +2047,14 @@ void Bouton_Ellipse_degrade(void)
}
void Bouton_Rectangle_degrade(void)
{
Effacer_curseur();
Demarrer_pile_operation(OPERATION_RECTANGLE_DEGRADE);
Afficher_curseur();
}
// -- Gestion du bouton de remplissage ---------------------------------------
void Bouton_Fill(void)