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:
9
graph.c
9
graph.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user