Skip to content

Commit

Permalink
Fix 1.0 scale
Browse files Browse the repository at this point in the history
Signed-off-by: g-rden <[email protected]>
  • Loading branch information
g-rden committed Jul 16, 2024
1 parent 0ddc367 commit 3d6e91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3d6e91e

Please sign in to comment.