From 3322856a706454b78e24ef6ca5fdcf4e5e059bc1 Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Tue, 16 Jul 2024 21:44:41 +0200 Subject: [PATCH] ImageViewer: fix img boundary on Y axis see: https://github.com/TriForceX/MiyooCFW/discussions/362 --- src/imageviewerdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageviewerdialog.cpp b/src/imageviewerdialog.cpp index 97eb82d5..954a0cd4 100644 --- a/src/imageviewerdialog.cpp +++ b/src/imageviewerdialog.cpp @@ -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; }