bugfix for the previous commit

metadata
Wenzel Jakob 2013-01-04 13:28:58 -05:00
parent 4b55f25d5f
commit c0fa27beff
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ void Bitmap::accumulate(const Bitmap *bitmap, Point2i sourceOffset,
Vector2i sizeDecrease(
std::max(0, std::max(sourceOffset.x + size.x - bitmap->getWidth(), targetOffset.x + size.x - getWidth())),
std::max(0, std::max(sourceOffset.y + size.y - bitmap->getWidth(), targetOffset.y + size.y - getWidth())));
std::max(0, std::max(sourceOffset.y + size.y - bitmap->getHeight(), targetOffset.y + size.y - getHeight())));
size -= sizeDecrease;