Re: [AD] Patch for rotate.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Sven Sandberg wrote:

@@ -336,18 +340,24 @@
      clip_bottom_i = (bottom_bmp_y + 0xffff) >> 16;
   else
      clip_bottom_i = (bottom_bmp_y + 0x8000) >> 16;
-   if (bmp->clip)
+   if (bmp->clip) {
      if (clip_bottom_i > bmp->cb)
	 clip_bottom_i = bmp->cb;
+   }
+   else
+      ASSERT(clip_bottom_i <= bmp->h);

Whoever applies this eventualy, remember to add { }

+   }
+   else
+      ASSERT(bmp_y_i >= 0);

And here.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/