Fixed stupid bug : it was not possible to rotate a brush 180° from the brush transform menu if hte height was even !!?

Also use proper NAN value if it exists when rotating a brush (we use some floats there and it's better to do it this way)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1170 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-11-11 18:17:42 +00:00
parent 792abd4866
commit eb917ce0ed
3 changed files with 17 additions and 14 deletions

View File

@@ -3728,7 +3728,6 @@ void Button_Brush_FX(void)
Rotate_90_deg();
break;
case 5 : // 180° Rotation
if (Brush_height&1)
Rotate_180_deg_lowlevel(Brush, Brush_width, Brush_height);
Brush_offset_X=(Brush_width>>1);
Brush_offset_Y=(Brush_height>>1);