From dcdf26f5e70840d4cb3f8074200fb3567fe157d5 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 31 Jul 2008 15:09:52 +0300 Subject: [PATCH] Mapwidget: Copy unit2ztile() to gtk_map_unit2ztile() --- libs/libgtkmap/gtkmap.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/libgtkmap/gtkmap.h b/libs/libgtkmap/gtkmap.h index 0b85ab1..5ac2f39 100644 --- a/libs/libgtkmap/gtkmap.h +++ b/libs/libgtkmap/gtkmap.h @@ -114,6 +114,9 @@ G_BEGIN_DECLS void latlon2unit(gdouble lat, gdouble lon, guint *unitx, guint *unity); void unit2latlon(guint unitx, guint unity, gdouble *lat, gdouble *lon); +#define gtk_map_tile2zunit(tile, zoom) ((tile) << (8 + zoom)) +#define gtk_map_unit2ztile(unit, zoom) ((unit) >> (8 + zoom)) + GType gtk_map_get_type(void); GtkWidget* gtk_map_new(void); -- 2.39.5