Skip to content

Commit 8433477

Browse files
committed
snap backdrop as well
1 parent 61172a3 commit 8433477

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tilecache.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,9 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
946946
backdrop.origin.y = 0;
947947
backdrop.size.width = TILE_SIZE;
948948
backdrop.size.height = TILE_SIZE;
949+
#ifndef HAVE_GTK_SNAPSHOT_SET_SNAP
950+
tilecache_snap_rect_to_boundary(&backdrop, pixel_size);
951+
#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/
949952
gtk_snapshot_append_texture(snapshot,
950953
tilecache->background_texture, &backdrop);
951954

@@ -973,8 +976,6 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
973976
bounds.size.height = tile->bounds0.height * scale;
974977

975978
#ifndef HAVE_GTK_SNAPSHOT_SET_SNAP
976-
/* Without gtk snap, we have to snap tiles edges ourselves.
977-
*/
978979
tilecache_snap_rect_to_boundary(&bounds, pixel_size);
979980
#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/
980981

0 commit comments

Comments
 (0)