changeset 2567:09386a249046

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.
author Colin Clark <colin.clark@cclark.uk>
date Fri, 04 Aug 2017 17:04:07 +0100
parents 034d8772d6d8
children 78518b422e23
files src/renderer-tiles.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) +