1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 05:48:01 +01:00

wrlib: RRotateImage function not fully implemented

when the rotation angle value passed to RRotateImage is a modulo of 90,
the function is working well but in other cases the rotateImage()
function is called. That last function is half implemented but
the half already implemented part is also segfaulting (use the testrot.c
to replay the crash).
So the patch is moving the 'not implemented' msg to disable the whole
rotateImage() function and comment it out.
This commit is contained in:
David Maciejak
2014-05-21 17:10:22 +07:00
committed by Carlos R. Mafra
parent 5ee39b7a27
commit 29301d9b03

View File

@@ -213,6 +213,7 @@ RImage *RRotateImage(RImage * image, float angle)
*
*/
#if 0
static void
copyLine(int x1, int y1, int x2, int y2, int nwidth, int format, unsigned char *dst, unsigned char **src)
{
@@ -292,9 +293,14 @@ copyLine(int x1, int y1, int x2, int y2, int nwidth, int format, unsigned char *
*src = s;
}
#endif
static RImage *rotateImage(RImage * image, float angle)
{
(void) angle;
puts("NOT FULLY IMPLEMENTED");
return RCloneImage(image);
#if 0
RImage *img;
int nwidth, nheight;
int x1, y1;
@@ -371,8 +377,6 @@ static RImage *rotateImage(RImage * image, float angle)
}
}
} else {
puts("NOT IMPLEMTENED");
return img;
dpr = dx << 1;
dpru = dpr - (dy << 1);
p = dpr - dy;
@@ -396,4 +400,5 @@ static RImage *rotateImage(RImage * image, float angle)
}
return img;
#endif
}