Skip to content

Commit 1e35f46

Browse files
committed
better filter selection
1 parent 23a8e65 commit 1e35f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tilecache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
965965
* blur the image. For zooming out, we want trilinear to get
966966
* mipmaps and antialiasing.
967967
*/
968-
GskScalingFilter filter = scale > 1.0 ?
968+
GskScalingFilter filter = scale >= pixel_size ?
969969
GSK_SCALING_FILTER_NEAREST : GSK_SCALING_FILTER_TRILINEAR;
970970

971971
graphene_rect_t bounds;

0 commit comments

Comments
 (0)