From 3d6e91eeb752308b620ca96fcb3e95755e9a3496 Mon Sep 17 00:00:00 2001 From: g-rden Date: Tue, 16 Jul 2024 11:26:14 +0200 Subject: [PATCH] Fix 1.0 scale Signed-off-by: g-rden --- src/viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer.c b/src/viewer.c index 151cf99..00e273a 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -595,7 +595,7 @@ static void draw_image(struct pixmap* wnd) } // put image on window surface - if (ctx.scale == 1.0) { + if (ctx.scale == 1.0 && ctx.img_y == 0 && ctx.img_x == 0) { pixmap_copy(img_pm, wnd, ctx.img_x, ctx.img_y, img->alpha); } else if (ctx.antialiasing) { pixmap_scale_bicubic(img_pm, wnd, ctx.img_x, ctx.img_y, ctx.scale,