Index: obj_line_drcenf.c =================================================================== --- obj_line_drcenf.c (revision 30979) +++ obj_line_drcenf.c (revision 30980) @@ -58,8 +58,8 @@ &pcb_crosshair.Route, &line->Point1, &line->Point2, pcb_layer_id(PCB->Data, PCB_CURRLAYER(PCB)), conf_core.design.line_thickness, conf_core.design.clearance * 2, - pcb_flag_make(flags), pcb_gui->shift_is_pressed(pcb_gui), - pcb_gui->control_is_pressed(pcb_gui)); + pcb_flag_make(flags), rnd_gui->shift_is_pressed(rnd_gui), + rnd_gui->control_is_pressed(rnd_gui)); } /* directions: @@ -147,7 +147,7 @@ return; /* don't draw outline when ctrl key is pressed */ - if (pcb_gui->control_is_pressed(pcb_gui)) { + if (rnd_gui->control_is_pressed(rnd_gui)) { line->draw = pcb_false; return; } @@ -161,7 +161,7 @@ } /* swap the modes if shift is held down */ - if (pcb_gui->shift_is_pressed(pcb_gui)) + if (rnd_gui->shift_is_pressed(rnd_gui)) way = !way; dx = pcb_crosshair.X - line->Point1.X; @@ -467,7 +467,7 @@ /* Silence a bogus compiler warning by storing this in a variable */ rnd_layer_id_t layer_idx = PCB_CURRLID(pcb); - if (pcb_gui->mod1_is_pressed(pcb_gui) || pcb_gui->control_is_pressed(pcb_gui) || PCB->RatDraw) + if (rnd_gui->mod1_is_pressed(rnd_gui) || rnd_gui->control_is_pressed(rnd_gui) || PCB->RatDraw) return; if (!(pcb_layer_flags(PCB, layer_idx) & PCB_LYT_COPPER)) @@ -492,7 +492,7 @@ #undef sqr } /* shift forces the line lookahead path to refract the alternate way */ - shift = pcb_gui->shift_is_pressed(pcb_gui); + shift = rnd_gui->shift_is_pressed(rnd_gui); if (PCB_XOR(r1 > r2, shift)) { if (conf_core.editor.line_refraction != 0) {