Fix issue 57: Missing refresh in the cross points for the 4-point splines.

Also fixed the display of the bottom-right corner of the spline itself.
Grad rectangle: The vector line is now drawn as XOR: dragging it no longer erases the screen.
SFont.c: Only removed TAB characters in source.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@418 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2008-12-26 19:38:21 +00:00
parent c55c27bd85
commit df33261b59
3 changed files with 51 additions and 54 deletions

View File

@ -1427,7 +1427,7 @@ void Tracer_courbe_General(short X1, short Y1,
Y = Min(Min(Y1,Y2),Min(Y3,Y4)); Y = Min(Min(Y1,Y2),Min(Y3,Y4));
Old_X = Max(Max(X1,X2),Max(X3,X4)) - X; Old_X = Max(Max(X1,X2),Max(X3,X4)) - X;
Old_Y = Max(Max(Y1,Y2),Max(Y3,Y4)) - Y; Old_Y = Max(Max(Y1,Y2),Max(Y3,Y4)) - Y;
Mettre_Ecran_A_Jour(X,Y,Old_X,Old_Y); Mettre_Ecran_A_Jour(X,Y,Old_X+1,Old_Y+1);
} }
// -- Tracer une courbe de Bézier définitivement -- // -- Tracer une courbe de Bézier définitivement --

View File

@ -1534,6 +1534,8 @@ void Courbe_Tracer_croix(short Pos_X, short Pos_Y)
else else
Fin_Y=3+(Limite_visible_Bas-Pos_Y); Fin_Y=3+(Limite_visible_Bas-Pos_Y);
if (Debut_X<=Fin_X && Debut_Y<=Fin_Y)
{
for (i=Debut_X; i<=Fin_X; i++) for (i=Debut_X; i<=Fin_X; i++)
{ {
Temp=Pos_X+i-3; Temp=Pos_X+i-3;
@ -1546,6 +1548,8 @@ void Courbe_Tracer_croix(short Pos_X, short Pos_Y)
Pixel_Preview(Pos_X,Temp,~Lit_pixel(Pos_X-Principal_Decalage_X, Pixel_Preview(Pos_X,Temp,~Lit_pixel(Pos_X-Principal_Decalage_X,
Temp -Principal_Decalage_Y)); Temp -Principal_Decalage_Y));
} }
Mettre_Ecran_A_Jour(Pos_X+Debut_X-3,Pos_Y+Debut_Y-3,Fin_X-Debut_X+1,Fin_Y-Debut_Y+1);
}
} }
@ -4391,15 +4395,8 @@ void Rectangle_Degrade_12_9(void)
Aff_coords_rel_ou_abs(Debut_X,Debut_Y); Aff_coords_rel_ou_abs(Debut_X,Debut_Y);
Effacer_ligne_Preview(Debut_X,Debut_Y,Fin_X,Fin_Y); Tracer_ligne_Preview_xor(Debut_X,Debut_Y,Fin_X,Fin_Y,0);
if (Mouse_K==A_GAUCHE) Tracer_ligne_Preview_xor(Debut_X,Debut_Y,Pinceau_X,Pinceau_Y,0);
{
Tracer_ligne_Preview (Debut_X,Debut_Y,Pinceau_X,Pinceau_Y,Fore_color);
}
else
{
Tracer_ligne_Preview (Debut_X,Debut_Y,Pinceau_X,Pinceau_Y,Back_color);
}
Operation_PUSH(Debut_X); Operation_PUSH(Debut_X);
Operation_PUSH(Debut_Y); Operation_PUSH(Debut_Y);