Commit 769a8962 authored by Jeff Muizelaar's avatar Jeff Muizelaar

2006-12-20 Jeff Muizelaar <jeff@infidigm.net>

	* poppler/GlobalParams.cc: Try to make zero-width lines as close to
	one pixel wide as we can. Fixes #9393.
parent 5c4bca18
2006-12-20 Jeff Muizelaar <jeff@infidigm.net>
* poppler/GlobalParams.cc: Try to make zero-width lines as close to
one pixel wide as we can. Fixes #9393.
2006-12-19 Albert Astals Cid <aacid@kde.org>
* poppler/SplashOutputDev.cc: Fix gray calculation. Patch by Scott
......
......@@ -202,12 +202,18 @@ void CairoOutputDev::updateMiterLimit(GfxState *state) {
cairo_set_miter_limit (cairo, state->getMiterLimit());
}
#define MIN(a,b) (a) < (b) ? (a) : (b)
void CairoOutputDev::updateLineWidth(GfxState *state) {
LOG(printf ("line width: %f\n", state->getLineWidth()));
if (state->getLineWidth() == 0.0) {
cairo_set_line_width (cairo, 72.0/300.0);
/* find out how big pixels (device unit) are in the x and y directions
* choose the smaller of the two as our line width */
double x = 1.0, y = 1.0;
cairo_device_to_user_distance(cairo, &x, &y);
cairo_set_line_width (cairo, MIN(fabs(x),fabs(y)));
} else {
cairo_set_line_width (cairo, state->getLineWidth());
cairo_set_line_width (cairo, state->getLineWidth());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment