From 465c567407edbd2c096fa25a97c0c0ba8eeadb03 Mon Sep 17 00:00:00 2001 From: Peter Clifton Date: Sun, 4 Dec 2016 19:20:05 +0000 Subject: [PATCH] hid/gtk (GL): I think the polygon renderer works in mask mode now --- src/hid/gtk/gtkhid-gl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hid/gtk/gtkhid-gl.c b/src/hid/gtk/gtkhid-gl.c index 286a362ea2..158c37ee31 100644 --- a/src/hid/gtk/gtkhid-gl.c +++ b/src/hid/gtk/gtkhid-gl.c @@ -1454,11 +1454,8 @@ GhidDrawMask (int side, BoxType * screen) polygon.BoundingBox = *screen; polygon.Flags = NoFlags (); SET_FLAG (FULLPOLYFLAG, &polygon); - common_fill_pcb_polygon (out->fgGC, &polygon, screen); + hid_draw_fill_pcb_polygon (out->fgGC, &polygon, screen); poly_FreeContours (&polygon.NoHoles); - /* THE GL fill_pcb_polygon doesn't work whilst masking */ -// hid_draw_fill_pcb_polygon (out->fgGC, &polygon, screen); -// hid_draw_fill_rect (out->fgGC, 0, 0, PCB->MaxWidth, PCB->MaxHeight); ghid_set_alpha_mult (out->fgGC, 1.0); hid_draw_use_mask (&ghid_graphics, HID_MASK_OFF); -- 2.11.4.GIT