version 0.3.18
[fms.git] / src / freenet / captcha / freeimage / bitmap.cpp
index 4c90fc1..7cef8cb 100644 (file)
@@ -1,6 +1,7 @@
 #include "../../../../include/freenet/captcha/freeimage/bitmap.h"\r
 \r
 #include <cmath>\r
+#include <cstdlib>\r
 \r
 namespace FreeImage\r
 {\r
@@ -135,7 +136,7 @@ void Bitmap::Blit(const Bitmap &bmp, const int destx, const int desty, const int
                {\r
                        height=Height()-desty+1;\r
                }\r
-               FIBITMAP *temp=FreeImage_Copy(bmp.m_bmp,sourcex,sourcey,sourcex+width-1,sourcey+height-1);\r
+               FIBITMAP *temp=FreeImage_Copy(bmp.m_bmp,sourcex,sourcey,sourcex+width,sourcey+height);\r
                FreeImage_Paste(m_bmp,temp,destx,desty,alpha);\r
                FreeImage_Unload(temp);\r
        }\r