Skip to content

Commit a7f695e

Browse files
committed
better backdrop snapping
1 parent 8433477 commit a7f695e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tilecache.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -940,15 +940,15 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
940940
/* Paint the backdrop.
941941
*/
942942
graphene_rect_t backdrop = *paint;
943+
#ifndef HAVE_GTK_SNAPSHOT_SET_SNAP
944+
tilecache_snap_rect_to_boundary(&backdrop, pixel_size);
945+
#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/
943946
gtk_snapshot_push_repeat(snapshot, &backdrop, NULL);
944947

945948
backdrop.origin.x = 0;
946949
backdrop.origin.y = 0;
947950
backdrop.size.width = TILE_SIZE;
948951
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*/
952952
gtk_snapshot_append_texture(snapshot,
953953
tilecache->background_texture, &backdrop);
954954

0 commit comments

Comments
 (0)