plugins: imageviewer: don't downscale unscaled image if it fits on screen

Change-Id: Ifd686884d1d8fe3dca9da58ba38ee2de822b5787
This commit is contained in:
Roman Artiukhin 2025-12-09 14:59:12 +02:00 committed by Solomon Peachy
parent 3ee26f761b
commit 2e1af37536

View file

@ -953,7 +953,7 @@ reload_decoder:
return change_filename(direction);
}
}
else if (ds_max < ds_min)
else if (ds_max < ds_min && !(ds_max == 1 && imgdec->unscaled_avail))
ds_max = ds_min;
ds = ds_max; /* initialize setting */