# HG changeset patch # User Colin Clark # Date 1501862647 -3600 # Node ID 09386a249046f499a1da8af06e2429580bd7f50e # Parent 034d8772d6d8d0b81fc75ce29e8ec2758909c6b0 Fix #192: tiff files (and others) appear blurry when 1:1 view https://github.com/BestImageViewer/geeqie/issues/192 Up to commit 808d8558b3d5 alpha-channel files at scale 1:1 always had GdkInterpType set to GDK_INTERP_NEAREST - the lowest quality. As there was no scaling, this was ok. Thereafter scaling was set to that selected by the user, resulting in problems when GDK_INTERP_HYPER was selected. This commit reverts to the previous method. diff -r 034d8772d6d8 -r 09386a249046 src/renderer-tiles.c --- a/src/renderer-tiles.c Mon Jul 31 14:36:29 2017 +0100 +++ b/src/renderer-tiles.c Fri Aug 04 17:04:07 2017 +0100 @@ -1270,7 +1270,7 @@ offset_x, offset_y, scale_x, scale_y, - interp_type, + (scale_x == 1.0 && scale_y == 1.0) ? GDK_INTERP_NEAREST : interp_type, 255, check_x, check_y, PR_ALPHA_CHECK_SIZE, ((options->image.alpha_color_1.red << 8 & 0x00FF0000) +