Index: trunk/src/layer.c =================================================================== --- trunk/src/layer.c (revision 27675) +++ trunk/src/layer.c (revision 27676) @@ -1123,8 +1123,8 @@ pcb_virt_layer_t *v = &pcb_virt_layers[vid]; assert((vid >= 0) && (vid < PCB_VLY_end)); - /* if there's no GUI, that means no draw should be done */ - if (pcb_gui == NULL) + /* if there's no renderer, that means no draw should be done */ + if (pcb_render == NULL) return 0; if (xform != NULL) @@ -1135,7 +1135,7 @@ pcb_layergrp_id_t grp; pcb_layer_id_t lid = v->new_id; grp = pcb_layer_get_group(pcb, lid); - return pcb_render->set_layer_group(pcb_gui, grp, v->purpose, v->purpi, lid, v->type, is_empty, xform); + return pcb_render->set_layer_group(pcb_render, grp, v->purpose, v->purpi, lid, v->type, is_empty, xform); } /* if the GUI doesn't have a set_layer, assume it wants to draw all layers */ @@ -1144,8 +1144,8 @@ int pcb_layer_gui_set_g_ui(pcb_layer_t *first, int is_empty, pcb_xform_t **xform) { - /* if there's no GUI, that means no draw should be done */ - if (pcb_gui == NULL) + /* if there's no renderer, that means no draw should be done */ + if (pcb_render == NULL) return 0; if (xform != NULL) @@ -1152,7 +1152,7 @@ *xform = NULL; if (pcb_render->set_layer_group != NULL) - return pcb_render->set_layer_group(pcb_gui, -1, NULL, -1, pcb_layer_id(first->parent.data, first), PCB_LYT_VIRTUAL | PCB_LYT_UI, is_empty, xform); + return pcb_render->set_layer_group(pcb_render, -1, NULL, -1, pcb_layer_id(first->parent.data, first), PCB_LYT_VIRTUAL | PCB_LYT_UI, is_empty, xform); /* if the GUI doesn't have a set_layer, assume it wants to draw all layers */ return 1;