int order=transform_get_order(trans);
struct point p;
displaylist->dc.trans=trans;
+ displaylist->dc.gra=gra;
p.x=0;
p.y=0;
// FIXME find a better place to set the background color
* @returns <>
* @author Martin Schaller (04/2008)
*/
-void graphics_draw(struct graphics *gra, struct displaylist *displaylist, GList *mapsets, struct transformation *trans, struct layout *l, int async, struct callback *cb)
+void graphics_draw(struct graphics *gra, struct displaylist *displaylist, struct mapset *mapset, struct transformation *trans, struct layout *l, int async, struct callback *cb)
{
int order=transform_get_order(trans);
dbg(1,"order=%d\n", order);
displaylist->dc.gra=gra;
- if(mapsets)
- displaylist->ms=mapsets->data;
+ displaylist->ms=mapset;
displaylist->dc.trans=trans;
displaylist->workload=async ? 100 : 0;
displaylist->cb=cb;
struct graphics_image;
struct transformation;
struct display_list;
+struct mapset;
enum draw_mode_num {
draw_mode_begin, draw_mode_end, draw_mode_cursor, draw_mode_end_lazy
void graphics_background_gc(struct graphics *this_, struct graphics_gc *gc);
void graphics_draw_itemgra(struct graphics *gra, struct itemgra *itm, struct transformation *t);
void graphics_displaylist_draw(struct graphics *gra, struct displaylist *displaylist, struct transformation *trans, struct layout *l, int callback);
-void graphics_draw(struct graphics *gra, struct displaylist *displaylist, GList *mapsets, struct transformation *trans, struct layout *l, int async, struct callback *cb);
+void graphics_draw(struct graphics *gra, struct displaylist *displaylist, struct mapset *mapset, struct transformation *trans, struct layout *l, int async, struct callback *cb);
int graphics_draw_cancel(struct graphics *gra, struct displaylist *displaylist);
struct displaylist_handle *graphics_displaylist_open(struct displaylist *displaylist);
struct displayitem *graphics_displaylist_next(struct displaylist_handle *dlh);
navit_vehicle_draw(this_, nv, NULL);
l=g_list_next(l);
}
- graphics_draw(this_->gra, this_->displaylist, this_->mapsets, this_->trans, this_->layout_current, async, NULL);
+ graphics_draw(this_->gra, this_->displaylist, this_->mapsets->data, this_->trans, this_->layout_current, async, NULL);
}
void