Fixes the brush roatation missing update. Also switched to cumulative rects method instead of rect-by-rect, as it is faster, and flicker free when working with big brushes. It may makes it harder to diagnose missing refreshes, however.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@392 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
32f07b66ce
commit
514eee4f79
5
graph.c
5
graph.c
@ -6580,4 +6580,9 @@ void Tourner_brosse_preview(float Angle)
|
||||
X2,Y2,Brosse_Largeur-1, 0,
|
||||
X3,Y3, 0,Brosse_Hauteur-1,
|
||||
X4,Y4,Brosse_Largeur-1,Brosse_Hauteur-1);
|
||||
Debut_X=Min(Min(X1,X2),Min(X3,X4));
|
||||
Fin_X=Max(Max(X1,X2),Max(X3,X4));
|
||||
Debut_Y=Min(Min(Y1,Y2),Min(Y3,Y4));
|
||||
Fin_Y=Max(Max(Y1,Y2),Max(Y3,Y4));
|
||||
UpdateRect(Debut_X,Debut_Y,Fin_X-Debut_X+1,Fin_Y-Debut_Y+1);
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
#ifdef __macosx__
|
||||
#define METHODE_UPDATE METHODE_UPDATE_PLEINE_PAGE
|
||||
#else
|
||||
#define METHODE_UPDATE METHODE_UPDATE_MULTI_RECTANGLE
|
||||
#define METHODE_UPDATE METHODE_UPDATE_PAR_CUMUL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user