Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent cc64a0a commit ae32a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions doomsday/libs/gui/src/graphics/image.cpp
Expand Up @@ -730,13 +730,12 @@ void Image::setPointRatio(float pointsPerPixel)

Image Image::subImage(Rectanglei const &subArea) const
{
const int bpp = bytesPerPixel();
const auto bounds = d->rect() & subArea;
Image sub(bounds.size(), d->format);
for (duint y = 0; y < bounds.height(); ++y)
{
memcpy(sub.row(y),
row(bounds.top() + y) + bounds.left() * bytesPerPixel(),
bounds.width() * bytesPerPixel());
memcpy(sub.row(y), row(bounds.top() + y) + bounds.left() * bpp, bounds.width() * bpp);
}
return sub;
}
Expand Down
2 changes: 0 additions & 2 deletions doomsday/libs/gui/src/windoweventhandler.cpp
Expand Up @@ -198,8 +198,6 @@ DE_PIMPL(WindowEventHandler)

void handleMouseWheelEvent(const SDL_MouseWheelEvent &ev)
{
debug("wheel %i %i", ev.x, ev.y);

DE_FOR_PUBLIC_AUDIENCE2(MouseEvent, i)
{
if (ev.x)
Expand Down

0 comments on commit ae32a9e

Please sign in to comment.