From: Kaj-Michael Lang Date: Thu, 31 Jul 2008 12:09:52 +0000 (+0300) Subject: Mapwidget: Copy unit2ztile() to gtk_map_unit2ztile() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcdf26f5e70840d4cb3f8074200fb3567fe157d5;p=mapper Mapwidget: Copy unit2ztile() to gtk_map_unit2ztile() --- 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);