summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorMatthias Kramm <kramm@quiss.org>2012-11-19 12:39:56 -0800
committerAlbert Astals Cid <aacid@kde.org>2012-12-08 23:14:33 +0100
commit1bfe4b22cf893dd498d6f306ee9cf942c72fe3ed (patch)
tree45624f16e6a36fdfe16592ea531f1e30ded0c011 /splash
parente5008bdb26df0135edfbd30a811df2332f4e036c (diff)
Fix linewidths in monochrome mode.
For zoom levels that scale the page below sqrt(2) of the original resolution, monochrome line widths were wrong (snapped back to 1 pixel wide.) This patch fixes that issue.
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 7fa509ce..549fae53 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -1979,7 +1979,7 @@ SplashError Splash::stroke(SplashPath *path) {
strokeWide(path2, w);
} else if (bitmap->mode == splashModeMono1) {
// this gets close to Adobe's behavior in mono mode
- if (d1 <= 2) {
+ if (d1 * state->lineWidth <= 2) {
strokeNarrow(path2);
} else {
strokeWide(path2, state->lineWidth);