Skip to content

Commit 454a9ed

Browse files
committed
small rename
1 parent 9944156 commit 454a9ed

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/tilecache.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -836,12 +836,8 @@ tilecache_draw_bounds(GtkSnapshot *snapshot,
836836
}
837837

838838
#ifndef HAVE_GTK_SNAPSHOT_SET_SNAP
839-
/* Snap a graphene rect to a hardware pixel boundary on the output surface. We
840-
* need to do this if the gtk snap mechachanism is missing or we'll get thin
841-
* white lines on tile edges.
842-
*/
843839
static void
844-
tilecache_snap_rect_to_boundary(graphene_rect_t *bounds)
840+
tilecache_snap_rect(graphene_rect_t *bounds)
845841
{
846842
double left = rint(bounds->origin.x);
847843
double top = rint(bounds->origin.y);
@@ -935,7 +931,7 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
935931
*/
936932
graphene_rect_t backdrop = *paint;
937933
#ifndef HAVE_GTK_SNAPSHOT_SET_SNAP
938-
tilecache_snap_rect_to_boundary(&backdrop);
934+
tilecache_snap_rect(&backdrop);
939935
#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/
940936
gtk_snapshot_push_repeat(snapshot, &backdrop, NULL);
941937

@@ -970,9 +966,8 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
970966
bounds.size.height = tile->bounds0.height * scale;
971967

972968
#ifndef HAVE_GTK_SNAPSHOT_SET_SNAP
973-
tilecache_snap_rect_to_boundary(&bounds);
969+
tilecache_snap_rect(&bounds);
974970
#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/
975-
976971
gtk_snapshot_append_scaled_texture(snapshot,
977972
tile_get_texture(tile), filter, &bounds);
978973

0 commit comments

Comments
 (0)