Image::Overlay patch
Posted: Sun Aug 05, 2012 6:06 am
here is patch for Image::Overlay() function :
Code: Select all
Index: zm_image.cpp
===================================================================
--- zm_image.cpp (revision 3688)
+++ zm_image.cpp (working copy)
@@ -711,12 +711,12 @@
void Image::Overlay( const Image &image, int x, int y )
{
- if ( !(width < image.width || height < image.height) )
+ if ( width < image.width || height < image.height )
{
Panic( "Attempt to overlay image too big for destination, %dx%d > %dx%d", image.width, image.height, width, height );
}
- if ( !(width < (x+image.width) || height < (y+image.height)) )
+ if ( width < (x+image.width) || height < (y+image.height) )
{
Panic( "Attempt to overlay image outside of destination bounds, %dx%d @ %dx%d > %dx%d", image.width, image.height, x, y, width, height );
}