X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ffreenet%2Fcaptcha%2Ffreeimage%2Fbitmap.cpp;h=7cef8cbffb0cb8032538ea0d6f47480f8785035c;hb=dabd19d7f764b8275c9c8370c7b89675b6a78243;hp=4c90fc1f44a4d2e27a2caace7131a7927274147c;hpb=822f84f5dac64183c556bd86fea8cd7b0527f528;p=fms.git diff --git a/src/freenet/captcha/freeimage/bitmap.cpp b/src/freenet/captcha/freeimage/bitmap.cpp index 4c90fc1..7cef8cb 100644 --- a/src/freenet/captcha/freeimage/bitmap.cpp +++ b/src/freenet/captcha/freeimage/bitmap.cpp @@ -1,6 +1,7 @@ #include "../../../../include/freenet/captcha/freeimage/bitmap.h" #include +#include namespace FreeImage { @@ -135,7 +136,7 @@ void Bitmap::Blit(const Bitmap &bmp, const int destx, const int desty, const int { height=Height()-desty+1; } - FIBITMAP *temp=FreeImage_Copy(bmp.m_bmp,sourcex,sourcey,sourcex+width-1,sourcey+height-1); + FIBITMAP *temp=FreeImage_Copy(bmp.m_bmp,sourcex,sourcey,sourcex+width,sourcey+height); FreeImage_Paste(m_bmp,temp,destx,desty,alpha); FreeImage_Unload(temp); }