[mapserver-commits] r9885 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Feb 23 12:44:11 EST 2010


Author: jimk
Date: 2010-02-23 12:44:11 -0500 (Tue, 23 Feb 2010)
New Revision: 9885

Modified:
   trunk/mapserver/mapcairo.c
Log:
Fix ellipse symbols drawing twice as large in Cairo compared to traditional
GD and AGG renderers.


Modified: trunk/mapserver/mapcairo.c
===================================================================
--- trunk/mapserver/mapcairo.c	2010-02-23 17:42:58 UTC (rev 9884)
+++ trunk/mapserver/mapcairo.c	2010-02-23 17:44:11 UTC (rev 9885)
@@ -677,7 +677,7 @@
 	cairo_set_line_join(r->cr, CAIRO_LINE_JOIN_MITER);
 	cairo_translate(r->cr,x,y);
 	cairo_rotate(r->cr,-style->rotation);
-	cairo_scale(r->cr,symbol->sizex*style->scale,symbol->sizey*style->scale);
+	cairo_scale(r->cr,symbol->sizex*style->scale/2,symbol->sizey*style->scale/2);
 	cairo_append_path(r->cr,arc);
 	cairo_restore(r->cr);
 	if(MS_VALID_COLOR(style->color)) {



More information about the mapserver-commits mailing list