Use smaller fit scale

This commit is contained in:
jpirnay
2026-05-08 23:41:43 +02:00
parent 79ef2eea91
commit 08ddc4e481
+1 -1
View File
@@ -302,7 +302,7 @@ bool Xtc::generateThumbBmp(int width, int height) const {
float scaleX = static_cast<float>(THUMB_TARGET_WIDTH) / pageInfo.width;
float scaleY = static_cast<float>(THUMB_TARGET_HEIGHT) / pageInfo.height;
float scale = (scaleX > scaleY) ? scaleX : scaleY;
float scale = (scaleX < scaleY) ? scaleX : scaleY;
if (scale >= 1.0f) {
if (generateCoverBmp()) {