Index: trunk/src/draw.c =================================================================== --- trunk/src/draw.c (revision 19390) +++ trunk/src/draw.c (revision 19391) @@ -212,7 +212,7 @@ } if (pcb_layer_gui_set_vlayer(PCB, PCB_VLY_FAB, 0)) { - pcb_stub_draw_fab(pcb_draw_out.fgGC, &hid_exp); + pcb_stub_draw_fab(info, pcb_draw_out.fgGC, &hid_exp); pcb_gui->end_layer(); } Index: trunk/src/stub_draw.c =================================================================== --- trunk/src/stub_draw.c (revision 19390) +++ trunk/src/stub_draw.c (revision 19391) @@ -31,7 +31,7 @@ #include "obj_text_draw.h" /****** common code ******/ -void dummy_draw_text(pcb_hid_gc_t gc, const char *str) +void dummy_draw_text(pcb_draw_info_t *info, pcb_hid_gc_t gc, const char *str) { pcb_text_t t; @@ -44,7 +44,7 @@ t.fid = 0; /* use the default font */ t.Scale = 150; t.Flags = pcb_no_flags(); - pcb_text_draw_(NULL, &t, 0, 0, PCB_TXT_TINY_ACCURATE); + pcb_text_draw_(info, &t, 0, 0, PCB_TXT_TINY_ACCURATE); } static pcb_bool dummy_mouse(void *widget, pcb_hid_mouse_ev_t kind, pcb_coord_t x, pcb_coord_t y) @@ -60,13 +60,13 @@ return 0; } -void dummy_DrawFab(pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) +void dummy_DrawFab(pcb_draw_info_t *info, pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) { - dummy_draw_text(gc, "Can't render the fab layer: the draw_fab plugin is not compiled and/or not loaded"); + dummy_draw_text(info, gc, "Can't render the fab layer: the draw_fab plugin is not compiled and/or not loaded"); } int (*pcb_stub_draw_fab_overhang)(void) = dummy_DrawFab_overhang; -void (*pcb_stub_draw_fab)(pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) = dummy_DrawFab; +void (*pcb_stub_draw_fab)(pcb_draw_info_t *info, pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) = dummy_DrawFab; /****** csect - cross section of the board ******/ @@ -74,7 +74,7 @@ static void dummy_draw_csect(pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) { - dummy_draw_text(gc, "Can't render the fab layer: the draw_csect plugin is not compiled and/or not loaded"); + dummy_draw_text(NULL, gc, "Can't render the fab layer: the draw_csect plugin is not compiled and/or not loaded"); } @@ -85,7 +85,7 @@ /****** font selector GUI ******/ static void dummy_draw_fontsel(pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) { - dummy_draw_text(gc, "Can't render the font selector: the draw_fontsel plugin is not compiled and/or not loaded"); + dummy_draw_text(NULL, gc, "Can't render the font selector: the draw_fontsel plugin is not compiled and/or not loaded"); } static pcb_text_t *dummy_fontsel_text = NULL; Index: trunk/src/stub_draw.h =================================================================== --- trunk/src/stub_draw.h (revision 19390) +++ trunk/src/stub_draw.h (revision 19391) @@ -34,10 +34,11 @@ #include "hid.h" #include "pcb_bool.h" #include "global_typedefs.h" +#include "draw.h" /* fab */ extern int (*pcb_stub_draw_fab_overhang)(void); -extern void (*pcb_stub_draw_fab)(pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e); +extern void (*pcb_stub_draw_fab)(pcb_draw_info_t *info, pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e); /* csect */ extern void (*pcb_stub_draw_csect)(pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e); Index: trunk/src_plugins/draw_fab/draw_fab.c =================================================================== --- trunk/src_plugins/draw_fab/draw_fab.c (revision 19390) +++ trunk/src_plugins/draw_fab/draw_fab.c (revision 19391) @@ -200,13 +200,11 @@ } } -static void DrawFab(pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) +static void DrawFab(pcb_draw_info_t *info, pcb_hid_gc_t gc, const pcb_hid_expose_ctx_t *e) { pcb_drill_info_t *AllDrills; int i, n, yoff, total_drills = 0, ds = 0, found; char utcTime[64]; -#warning TODO: get this as an arg - pcb_draw_info_t *info = NULL; AllDrills = drill_get_info(PCB->Data); if (conf_core.editor.grid_unit->family == PCB_UNIT_IMPERIAL)