#ifdef WITH_CAIRO
/* Cairo context for widget->window */
cairo_t *ct;
+ cairo_font_options_t *cf;
cairo_matrix_t matrix_rotate;
#endif
/* How wide paths are drawn */
guint draw_width;
+ gboolean alias;
+
/* Mouse related stuff */
gboolean button_down;
gint mouse_x;
priv->rotate_angle=M_PI;
priv->rotate_view=FALSE;
+priv->alias=TRUE;
+
priv->gl=FALSE;
priv->buffer=NULL;
}
#ifdef WITH_CAIRO
priv->ct=gdk_cairo_create(widget->window);
+priv->cf=cairo_font_options_create();
+if (priv->alias) {
+ cairo_set_antialias(priv->ct, CAIRO_ANTIALIAS_NONE);
+ cairo_font_options_set_antialias(priv->cf, CAIRO_ANTIALIAS_NONE);
+} else {
+ cairo_set_antialias(priv->ct, CAIRO_ANTIALIAS_DEFAULT);
+ cairo_font_options_set_antialias(priv->cf, CAIRO_ANTIALIAS_NONE);
+}
#endif
gtk_map_render_buffer(widget, event);
#ifdef WITH_CAIRO
cairo_destroy(priv->ct);
+cairo_font_options_destroy(priv->cf);
priv->ct=NULL;
+priv->cf=NULL;
#endif
return TRUE;