Commit 4f4631ae authored by Jonas Danielsson's avatar Jonas Danielsson

Update to new API

parent 02b008a0
......@@ -179,11 +179,9 @@ on_canvas_draw (ClutterCanvas *canvas,
gboolean success;
GList *texts, *l;
mapbox = vtile_mapbox_new (data->data,
data->size,
width,
mapbox = vtile_mapbox_new (width,
champlain_tile_get_zoom_level (data->tile));
vtile_mapbox_load (mapbox, data->data, data->size, NULL);
vtile_mapbox_set_stylesheet (mapbox, data->stylesheet);
cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
......@@ -192,7 +190,6 @@ on_canvas_draw (ClutterCanvas *canvas,
vtile_mapbox_render (mapbox, cr, NULL);
actor = clutter_actor_new ();
clutter_actor_set_size (actor,
champlain_tile_get_size (data->tile),
......
......@@ -89,9 +89,7 @@ on_text_draw (ClutterCanvas *canvas,
cairo_paint (cr);
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
cairo_set_source_surface (cr, text->surface,
-text->surface_offset_x,
-text->surface_offset_y);
cairo_set_source_surface (cr, text->surface, 0, 0);
cairo_paint (cr);
surface = cairo_get_target (cr);
g_signal_handlers_disconnect_by_func (canvas, on_text_draw, text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment