Skip to content

Commit

Permalink
ImageViewer: fix img boundary on Y axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Apaczer committed Jul 16, 2024
1 parent 36d8643 commit 3322856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imageviewerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void ImageViewerDialog::exec() {
offsetY += gmenu2x->listRect.h / 3;
if (offsetY > 0) offsetY = 0;
}
else if ((gmenu2x->input[DOWN] || gmenu2x->input.hatEvent(DDOWN) == DDOWN) && image.raw->w + offsetY > gmenu2x->listRect.h) {
else if ((gmenu2x->input[DOWN] || gmenu2x->input.hatEvent(DDOWN) == DDOWN) && image.raw->h + offsetY > gmenu2x->listRect.h) {
offsetY -= gmenu2x->listRect.h / 3;
if (image.raw->h + offsetY < gmenu2x->listRect.h) offsetY = gmenu2x->listRect.h - image.raw->h;
}
Expand Down

0 comments on commit 3322856

Please sign in to comment.