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

1
misc.c
View File

@@ -571,6 +571,7 @@ void Rotate_180_deg_lowlevel(byte *src, short width, short height)
return;
}
while(ESI < EDI)
{
// On échange les deux lignes pointées par EDI et