When porting Unifpack to a new architecture it may be necessary to write a new device driver, we describe here tha main steps to do so. DeviceDriver , most of the fields in this structure are pointer to functions, you must provide this functions since they do the real work such as drawing lines or arcs. Usually there is no need to edit the file drstub.h , it just contains the driver declaration and some macro definitions, the file you must edit is drstub.c , the file itself contains some directions on what to write on it, but we describe here the main guidelines. Destroy Closes the device, if any memory is allocated in the data field you must free it here. Clear Deletes any drawing on the device.
Line Draws a line, using the current line style.
FillPoly Fill a polygon using current fill style, not used really can be noop. WriteText Writes a string at the prescribed coordinates. SetLineStyle Changes the line style, no standard names or definitions are yet provided for the line styles, this should be corrected on future versions. As above but for the fill style. I think that uni2dev code is self explanatory, just follow the directions contained therein.