projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f86db0
)
cairo: Fix header box drawing.
author
Ben Pfaff
<blp@gnu.org>
Tue, 9 Jun 2009 03:37:46 +0000
(20:37 -0700)
committer
Ben Pfaff
<blp@gnu.org>
Tue, 9 Jun 2009 03:37:46 +0000
(20:37 -0700)
src/output/cairo.c
patch
|
blob
|
history
diff --git
a/src/output/cairo.c
b/src/output/cairo.c
index 0a2190ebe5c9ad643fe2417a54429b357ee86cac..23a93287c6496b722336131aa277ead6eb369108 100644
(file)
--- a/
src/output/cairo.c
+++ b/
src/output/cairo.c
@@
-650,10
+650,9
@@
draw_headers (struct outp_driver *this)
x1 = this->width - this->prop_em_width;
/* Draw box. */
x1 = this->width - this->prop_em_width;
/* Draw box. */
- /* XXX coordinates below might not be right, both in terms of
- the Y transformation and width/height versus x2/y2. */
- cairo_rectangle (ext->cairo, 0, y,
- this->width, 2 * this->font_height + ext->line_gutter);
+ cairo_rectangle (ext->cairo, 0, y, this->width,
+ 2 * (this->font_height
+ + ext->line_width + ext->line_gutter));
cairo_save (ext->cairo);
cairo_set_source_rgb (ext->cairo, 0.9, 0.9, 0.9);
cairo_fill_preserve (ext->cairo);
cairo_save (ext->cairo);
cairo_set_source_rgb (ext->cairo, 0.9, 0.9, 0.9);
cairo_fill_preserve (ext->cairo);