@@ -1015,16 +1015,15 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
10151015 for (p = tilecache -> visible [i ]; p ; p = p -> next ) {
10161016 Tile * tile = TILE (p -> data );
10171017
1018- graphene_rect_t bounds ;
1019-
1020- #if GTK_CHECK_VERSION (4 , 10 , 0 )
10211018 /* If we are zooming in beyond 1:1, we want nearest so we don't
10221019 * blur the image. For zooming out, we want trilinear to get
10231020 * mipmaps and antialiasing.
10241021 */
10251022 GskScalingFilter filter = scale > 1.0 ?
10261023 GSK_SCALING_FILTER_NEAREST : GSK_SCALING_FILTER_TRILINEAR ;
10271024
1025+ graphene_rect_t bounds ;
1026+
10281027 // add a margin along the right and bottom to prevent black seams
10291028 // at tile joins
10301029 bounds .origin .x = tile -> bounds .left * scale - x + paint_rect -> left ;
@@ -1034,15 +1033,6 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
10341033
10351034 gtk_snapshot_append_scaled_texture (snapshot ,
10361035 tile_get_texture (tile ), filter , & bounds );
1037- #else
1038- bounds .origin .x = tile -> bounds .left * scale - x + paint_rect -> left ;
1039- bounds .origin .y = tile -> bounds .top * scale - y + paint_rect -> top ;
1040- bounds .size .width = tile -> bounds .width * scale + 0.5 ;
1041- bounds .size .height = tile -> bounds .height * scale + 0.5 ;
1042-
1043- gtk_snapshot_append_texture (snapshot ,
1044- tile_get_texture (tile ), & bounds );
1045- #endif
10461036
10471037 /* In debug mode, draw the edges and add text for the
10481038 * tile pointer and age.
0 commit comments