1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 17:21:54 +02:00
Commit Graph

18 Commits

Author SHA1 Message Date
Werner Almesberger
ccf77a541d eeshow/cro.c (cr_arc): close the path for filled arcs
Else, we'd get little "horns" at the ends.
2016-08-16 02:33:37 -03:00
Werner Almesberger
5a7ddc8b95 eeshow/: convert "perror" to diagnostic functions 2016-08-12 14:43:28 -03:00
Werner Almesberger
629b9356e2 eeshow/: fix offset calculation and also get rid of rounding artefacts 2016-08-09 12:28:21 -03:00
Werner Almesberger
be43cce751 eeshow/cro.c (cro_img_end): flush surface
It worked without it, but better safe than sorry.
2016-08-09 10:27:22 -03:00
Werner Almesberger
bcec5c005f eeshow/cro.c (cro_img): draw on image for external use 2016-08-09 10:09:08 -03:00
Werner Almesberger
cd0ee8932d eeshow/cro.c (cro_get_size): split from end_common 2016-08-08 17:16:50 -03:00
Werner Almesberger
e874d66ebb eeshow/cro.c: disentangle interfaces
They all are very similar but still differ in subtle ways.
2016-08-08 17:00:33 -03:00
Werner Almesberger
a564b5d03e eeshow/cro.c (new_cc): separate context creation from option parsing 2016-08-08 16:54:09 -03:00
Werner Almesberger
52ab16d62a eeshow/cro.c (cr_png_end): was almost identical to cro_img_end, unify 2016-08-08 16:49:37 -03:00
Werner Almesberger
f40f012a1e eeshow/: add color overriding; basic infrastructure for viewing deltas 2016-08-07 14:06:50 -03:00
Werner Almesberger
d953345397 eeshow/cro.h, cro.c: add color override 2016-08-07 08:13:16 -03:00
Werner Almesberger
e2ff07457c eeshow/: scroll wheel zooms 2016-08-03 09:33:16 -03:00
Werner Almesberger
15d434294d eeshow/cro.h (cro_img_end, cro_img_write, cro_canvas_end): don't need void *
Since we don't call these functions through gfx_ops, we don't need
a void pointer.
2016-08-03 07:41:44 -03:00
Werner Almesberger
76c1f916df eeshow/: add rendering on Gtk canvas 2016-08-03 07:38:57 -03:00
Werner Almesberger
ade54c6029 eeshow/cro.c: set line cap to CAIRO_LINE_CAP_ROUND or CAIRO_LINE_CAP_SQUARE
CAIRO_LINE_CAP_ROUND is the same as in FIG mode.

Note that all non-dashed lines disappear when generating PDF and
CAIRO_LINE_CAP_ROUND is set. For now, we just use CAIRO_LINE_CAP_SQUARE.
2016-08-02 17:26:02 -03:00
Werner Almesberger
56b4cb89cc eeshow/cro.c (cr_pdf_end): reduce line width to 0.5 * scale
With 2, lines were far too thick. Note that the 0.5 points (1/72 in) we
have now are roughly twice what XFig uses (1/160 in for PDF or PNG),
yet things don't look very fat there.
2016-08-02 17:16:43 -03:00
Werner Almesberger
3864743280 eeshow/: PNG and PDF now write to standard output if -o outfile is absent 2016-08-02 11:46:30 -03:00
Werner Almesberger
a941a5f246 rename sch2fig to eeshow 2016-08-02 11:00:08 -03:00