@@ -841,14 +841,14 @@ tilecache_draw_bounds(GtkSnapshot *snapshot,
841841 * white lines on tile edges.
842842 */
843843static void
844- tilecache_snap_rect_to_boundary (graphene_rect_t * bounds , double scale )
844+ tilecache_snap_rect_to_boundary (graphene_rect_t * bounds , double pixel_size )
845845{
846- double left = rint (bounds -> origin .x * scale ) / scale ;
847- double top = rint (bounds -> origin .y * scale ) / scale ;
846+ double left = rint (bounds -> origin .x * pixel_size ) / pixel_size ;
847+ double top = rint (bounds -> origin .y * pixel_size ) / pixel_size ;
848848 double right =
849- rint ((bounds -> origin .x + bounds -> size .width ) * scale ) / scale ;
849+ rint ((bounds -> origin .x + bounds -> size .width ) * pixel_size ) / pixel_size ;
850850 double bottom =
851- rint ((bounds -> origin .y + bounds -> size .height ) * scale ) / scale ;
851+ rint ((bounds -> origin .y + bounds -> size .height ) * pixel_size ) / pixel_size ;
852852
853853 bounds -> origin .x = left ;
854854 bounds -> origin .y = top ;
@@ -869,7 +869,7 @@ tilecache_snap_rect_to_boundary(graphene_rect_t *bounds, double scale)
869869 */
870870void
871871tilecache_snapshot (Tilecache * tilecache , GtkSnapshot * snapshot ,
872- double scale_factor ,
872+ double pixel_size ,
873873 double scale , double x , double y , graphene_rect_t * paint , gboolean debug )
874874{
875875 /* In debug mode, scale and offset so we can see tile clipping.
@@ -975,7 +975,7 @@ tilecache_snapshot(Tilecache *tilecache, GtkSnapshot *snapshot,
975975#ifndef HAVE_GTK_SNAPSHOT_SET_SNAP
976976 /* Without gtk snap, we have to snap tiles edges ourselves.
977977 */
978- tilecache_snap_rect_to_boundary (& bounds , scale_factor );
978+ tilecache_snap_rect_to_boundary (& bounds , pixel_size );
979979#endif /*!HAVE_GTK_SNAPSHOT_SET_SNAP*/
980980
981981 gtk_snapshot_append_scaled_texture (snapshot ,
0 commit comments