projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.3.18
[fms.git]
/
src
/
freenet
/
captcha
/
freeimage
/
bitmap.cpp
diff --git
a/src/freenet/captcha/freeimage/bitmap.cpp
b/src/freenet/captcha/freeimage/bitmap.cpp
index
4c90fc1
..
7cef8cb
100644
(file)
--- 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"
\r
\r
#include <cmath>
\r
#include "../../../../include/freenet/captcha/freeimage/bitmap.h"
\r
\r
#include <cmath>
\r
+#include <cstdlib>
\r
\r
namespace FreeImage
\r
{
\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
{
\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
FreeImage_Paste(m_bmp,temp,destx,desty,alpha);
\r
FreeImage_Unload(temp);
\r
}
\r