summaryrefslogtreecommitdiff
path: root/pxl
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2010-05-13 03:25:44 +0000
committerHenry Stiles <henry.stiles@artifex.com>2010-05-13 03:25:44 +0000
commitd5545b24ea7d84d676d44d9a561f40a29221b377 (patch)
tree4f866d885a5c0c8221023af9ec7cb30d40d58e7e /pxl
parentb8215a537e950b949374e3ef426ad014f3c7858b (diff)
Fixes bug #690877, update the PXL default fill algorithm to use
any-part-of-pixel not center-of-pixel. Unfortunately we expect differences in most the pxl test files with this change. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11231 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'pxl')
-rw-r--r--pxl/pxgstate.c3
-rw-r--r--pxl/pxpaint.c17
2 files changed, 1 insertions, 19 deletions
diff --git a/pxl/pxgstate.c b/pxl/pxgstate.c
index 2255141d5..fcbca0669 100644
--- a/pxl/pxgstate.c
+++ b/pxl/pxgstate.c
@@ -247,8 +247,7 @@ px_initgraphics(px_state_t *pxs)
px_gstate_reset(pxs->pxgs);
gs_initgraphics(pgs);
- /* PCL XL uses the center-of-pixel rule. */
- gs_setfilladjust(pgs, 0.0, 0.0);
+ gs_setfilladjust(pgs, 0.5, 0.5);
{ gs_point inch;
float dpi;
diff --git a/pxl/pxpaint.c b/pxl/pxpaint.c
index c233696d7..b70188e08 100644
--- a/pxl/pxpaint.c
+++ b/pxl/pxpaint.c
@@ -442,22 +442,6 @@ paint_path(px_state_t *pxs, bool reset)
need_restore_rop = true;
}
pxs->have_page = true;
- /*
- * The H-P printers thicken very thin strokes slightly.
- * We do the same here.
- */
- {
- float width = gs_currentlinewidth(pgs);
- gs_matrix mat;
- float sx, sy;
-
- gs_currentmatrix(pgs, &mat);
- sx = fabs(mat.xx) + fabs(mat.xy);
- sy = fabs(mat.yx) + fabs(mat.yy);
- width *= min(sx, sy);
- if ( width < 5 )
- gs_setfilladjust(pgs, 0.5, 0.5);
- }
if ( (code = px_set_paint(&pxgs->pen, pxs)) < 0 ||
(code = gs_stroke(pgs)) < 0
)
@@ -466,7 +450,6 @@ paint_path(px_state_t *pxs, bool reset)
gs_setrasterop(pgs, save_rop);
gs_settexturetransparent(pgs, save_transparent);
}
- gs_setfilladjust(pgs, 0.0, 0.0);
}
rx: if ( save_path ) {
gx_path_assign_free(ppath, save_path); /* path without a Current point! */
ion> Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2024-11-05Merge remote-tracking branch 'libreoffice-24-8-3' into feature/cib_contract49dfeature/cib_contract49dThorsten Behrens0-0/+0
2024-10-31Slightly tweak translation for "autoformat warning" msgboxThorsten Behrens1-1/+1
2024-10-31Add translation for "autoformat warning" msgboxThorsten Behrens1-0/+16
2024-10-31Manually add translations for new zoom settingsThorsten Behrens1-0/+96
2024-10-27Branch libreoffice-24-8-3Christian Lohmaier0-0/+0
2024-10-27update translations for 24.8.3 rc1Christian Lohmaier81-1040/+1036
2024-10-25update translations for 24.8.3 rc1Christian Lohmaier100-740/+738
2024-10-23add Tagalog (tl) translationsChristian Lohmaier220-0/+783589
2024-10-23update translations for 24-8Christian Lohmaier559-12392/+14246
2024-09-23update translations for 24.8.2 rc1Christian Lohmaier877-29645/+30559
2024-09-09update translations for 24.8.1 rc1Christian Lohmaier47-409/+408
2024-09-06update translations for 24.8.1 rc2Christian Lohmaier294-4826/+4802
2024-08-23update translations for 24.8.1 rc1Christian Lohmaier464-7996/+9278
2024-08-20Updated Slovenian translationMartin Srebotnjak15-50/+60
2024-08-08update translations for 24.8.0 rc3Christian Lohmaier330-7999/+7194
2024-07-26update translations for 24.8.0 rc2/masterChristian Lohmaier78-778/+848
2024-07-24update translations for 24.8.0 rc2Christian Lohmaier334-5629/+5300
2024-07-15Updated Slovenian translationMartin Srebotnjak51-1774/+2251
2024-07-15update translations for master/24-8Christian Lohmaier449-6941/+7245
2024-07-08update translations for 24.8.0 rc1/masterChristian Lohmaier752-13300/+15854
2024-06-28update translations for 24.8/masterChristian Lohmaier1401-55124/+51822
2024-06-28update translations for 24-8/masterChristian Lohmaier696-19429/+27757
2024-06-17update translations for 24-8/masterChristian Lohmaier888-57427/+58764
2024-06-11Branch libreoffice-24-8Christian Lohmaier0-0/+0
2024-06-11update translations for master / 24.8.0 beta1libreoffice-24-8-branch-pointChristian Lohmaier1034-10831/+33947
2024-06-06update translations for master / 24.8.0 beta1Christian Lohmaier897-61626/+70322
2024-06-03update translations for masterChristian Lohmaier