Werner Almesberger
cdb68f70a2
eeshow/gfx/pdftoc.c (write_trailer): walking pointer is a bad idea if we realloc
2016-08-22 23:19:10 -03:00
Werner Almesberger
417ddb16fa
eeshow/gfx/pdftoc.c: use strbegins instead of local "begins"
2016-08-22 21:25:44 -03:00
Werner Almesberger
465a36fde5
eeshow/misc/util.h (realloc_size, realloc_type_n): get rid of bare "realloc"
...
Finally ! Shoulds have done this a long time ago.
2016-08-22 21:00:40 -03:00
Werner Almesberger
ef3d118c9e
eeshow/gui/diff.c: improve sectioning
2016-08-22 13:15:38 -03:00
Werner Almesberger
5fd877a6f8
eeshow/gfx/cro.c: support PDF TOC addition; option -T to suppress it
2016-08-21 11:37:47 -03:00
Werner Almesberger
71d03c7281
eeshow/gfx/pdftoc.c: edit Cairo-generated PDF to insert TOC
...
Based on schtoc.pl
2016-08-21 11:34:12 -03:00
Werner Almesberger
7652f3a88f
eeshow/gfx/gfx.c (gfx_sheet_name): pass sheet name (title) to driver
2016-08-21 11:32:13 -03:00
Werner Almesberger
ff47d69d25
eeshow/gfx/diff.c (complement_box): determine limits outside the loops
2016-08-20 15:54:32 -03:00
Werner Almesberger
3b76b058fd
eeshow/gfx/: don't overthink coordinate transforms
...
The xe/ye element was completely unnecessary because we never have an
offset at the pixel level. Furthermore, it was used incorrectly, causing
a shift between old and new when xmin/ymin differed.
2016-08-20 15:05:34 -03:00
Werner Almesberger
c06680e272
eeshow/gfx/cro.c (cr_text_width): use cd/dc, not cx/xc
...
We don't want to risk getting sheet offsets mixed into our text sizes.
2016-08-20 09:24:27 -03:00
Werner Almesberger
adfb52d12d
eeshow/gfx/cro.c (xc): mixed up offset calculation
...
Apparently, this had no major effect.
2016-08-20 09:19:35 -03:00
Werner Almesberger
13fcf8ce3a
eeshow/gfx/diff.c: export area creation and freeing
2016-08-20 08:26:01 -03:00
Werner Almesberger
6b901399ce
eeshow/gfx/diff.c (diff_to_canvas): draw caller-supplied areas
...
These are for future highlighting. WIP.
2016-08-19 21:25:48 -03:00
Werner Almesberger
6be9e7ac0c
eeshow/gfx/diff.c (merge_coord): typo caused offset troubles
2016-08-19 19:15:39 -03:00
Werner Almesberger
c24c966fb0
eeshow/gfx/diff.c (show_areas): break out the actual coloring
...
... for future sharing.
2016-08-19 13:25:33 -03:00
Werner Almesberger
c4811c8dd6
eeshow/: util.h and diag.c go to misc/
2016-08-17 21:37:15 -03:00
Werner Almesberger
766f1d64f3
eeshow/misc.c: goes to gfx/, too
2016-08-17 21:31:56 -03:00
Werner Almesberger
9829f7070f
eeshow/: move graphics low-level functions to gfx/
2016-08-17 21:28:42 -03:00