Skip to content

Commit

Permalink
libgui|Image: Fixed calculation of partial image draw bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 95aff81 commit e3a8de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/libs/gui/src/graphics/image.cpp
Expand Up @@ -817,7 +817,7 @@ void Image::drawPartial(Image const &image, Rectanglei const &part, Vec2i const
const auto srcPart = image.d->rect() & part;
const auto bounds = Rectanglei(topLeft, topLeft + srcPart.size().toVec2i());
const auto destRect = d->rect() & bounds;
const auto srcRect = bounds.moved(-topLeft + srcPart.topLeft);
const auto srcRect = destRect.moved(-topLeft);

if (srcRect.isNull()) return;

Expand Down

0 comments on commit e3a8de2

Please sign in to comment.