Add support for filling / thindrawing raw polygons to the HID interface
commite2bbcd63017de0a6a8485d6b3e28cb32089150af
authorPeter Clifton <pcjc2@cam.ac.uk>
Sat, 21 Feb 2009 17:51:54 +0000 (21 17:51 +0000)
committerPeter Clifton <pcjc2@cam.ac.uk>
Sat, 21 Feb 2009 17:51:54 +0000 (21 17:51 +0000)
treecbee69b757ef6cfb20e6a5bec7efdcb553386f6c
parent4615d7da3c49ba00dea064629b1d43b5283c31dc
Add support for filling / thindrawing raw polygons to the HID interface

Refactor core polygon drawing to use these member functions, and split
the old code which used the HID's fill_polygon and draw_line functions
into a helper function which the guis now use to convert the polygon
into the primitives it knows how to draw.

Alter the NoHoles dicer to pass back PLINE contours, rather than
wrapping them in a POLYAREA and PolygonType.
24 files changed:
src/Makefile.am
src/dbus.c
src/draw.c
src/global.h
src/hid.h
src/hid/batch/batch.c
src/hid/bom/bom.c
src/hid/common/draw_helpers.c [new file with mode: 0644]
src/hid/common/draw_helpers.h [new file with mode: 0644]
src/hid/common/extents.c
src/hid/common/hidinit.c
src/hid/common/hidnogui.c
src/hid/gerber/gerber.c
src/hid/gtk/gtkhid-main.c
src/hid/gtk/gui-config.c
src/hid/gtk/gui.h
src/hid/lesstif/main.c
src/hid/lpr/lpr.c
src/hid/nelma/nelma.c
src/hid/png/png.c
src/hid/ps/eps.c
src/hid/ps/ps.c
src/polygon.c
src/polygon.h