[AD] Patch for rotate.c |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
This patch fix a ugly error when you rotate a sprite over a non-clipped bitmap (this patch is for 4.0.3, but should be applied in all branches). If you compile the test with the current Allegro version you can see: Moving the sprite to the: - left side: all work fine - right side: some extra pixels appears in the left side - top side and bottom side: SEG FAULT The segmentation fault is correct (because we desactivate the clipping), but the extra pixels that appears in left side when we rotate a sprite over the right side, that is bad. -- http://www.davidcapello.com.ar
Attachment:
test.c.gz
Description: application/gunzip
--- rotate.c.orig Sat Oct 16 22:12:59 2004 +++ rotate.c Sat Oct 16 22:15:06 2004 @@ -314,7 +314,7 @@ } else { clip_left = 0; - clip_right = bmp->w << 16; + clip_right = (bmp->w << 16) - 1; } /* Quit if we're totally outside. */
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |