Fixes a SIGSEGV when using line,polyline,polygon etc. with a starting point below the picture (outside).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@405 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-12-20 17:50:54 +00:00
parent 28805017a2
commit 8862c1994f
3 changed files with 16 additions and 6 deletions

View File

@@ -800,6 +800,15 @@ void Remplir(byte Couleur_de_remplissage)
(Pos_Y<=Limite_Bas) )
Pixel_Preview(Pos_X,Pos_Y,Couleur);
}
// Affichage d'un point pour une preview, avec sa propre couleur
void Pixel_figure_Preview_auto(word Pos_X,word Pos_Y)
{
if ( (Pos_X>=Limite_Gauche) &&
(Pos_X<=Limite_Droite) &&
(Pos_Y>=Limite_Haut) &&
(Pos_Y<=Limite_Bas) )
Pixel_Preview(Pos_X,Pos_Y,Lit_pixel_dans_ecran_courant(Pos_X,Pos_Y));
}
// Affichage d'un point pour une preview en xor
void Pixel_figure_Preview_xor(word Pos_X,word Pos_Y,__attribute__((unused)) byte Couleur)