Skip to content

Commit

Permalink
Fix #192: tiff files (and others) appear blurry when 1:1 view
Browse files Browse the repository at this point in the history
#192

Up to commit 808d855 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.
  • Loading branch information
caclark committed Aug 4, 2017
1 parent 559f084 commit a920f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer-tiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ static void rt_tile_get_region(gboolean has_alpha,
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) +
Expand Down

0 comments on commit a920f59

Please sign in to comment.