Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | [From Symphony] disable antialiased lines for background hatches | ||||||
---|---|---|---|---|---|---|---|
Product: | gsl | Reporter: | hdu <hdu> | ||||
Component: | code | Assignee: | Armin Le Grand <Armin.Le.Grand> | ||||
Status: | CLOSED FIXED | QA Contact: | |||||
Severity: | Normal | ||||||
Priority: | P3 | CC: | Armin.Le.Grand, chao.dev.h, kingwisemmx, liushenf | ||||
Version: | AOO 3.4.0 | ||||||
Target Milestone: | 4.0.0 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | ENHANCEMENT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Issue Depends on: | 120237 | ||||||
Issue Blocks: | |||||||
Attachments: |
|
Description
hdu@apache.org
2012-07-09 13:50:08 UTC
ALG: Taking a look... Created attachment 78652 [details]
original patch for the enhancement
The problem with the patch is that AOO already got a related change that interacts with this patch. Reassigning to ALG, the author of the other change.
ALG: More complicated as it looks. To simply hard-wired call the VCL hatch painting is not an option, this will collide later with VCL-free renderers. It is only painted differently since VCL hatch painting has a hard-wired implementation which chooses a pixel-based minimum for painting. This is not the normal procedure; in general to paint the model means to create a discrete visualisation (based on pixels) which will always have errors, but tries to be as close as possible to the original visualisation. The hatch definition includes a distance between the lines in 100th mm, so this view-only 'optimization' is not part of the normal handling. It will need to be 'simulated' using a view-dependent primitive (and it can be). In this case it makes sence since it will do the same what VCL did and thus does what the definition was initially inteded to do, just by purpose and not hidden in the VCL render implementation part. Preparing implementation of the needed view-dependent primitive. "alg" committed SVN revision 1364705 into trunk: #120230# Adapt hatch processing to keep a view-dependent minimal distance for... ALG: Adapted FillHatchAttribute to have an integer nMinimalDiscreteDistance. This is active when > 0, else inactive. Adapted FillHatchPrimitive2D to be derived from DiscreteMetricDependentPrimitive2D. It will now adapt when MinimalDiscreteDistance of the contained attribute::FillHatchAttribute is used (else fallback to view-independent primitive). Adapted creation places of FillHatchAttribute, currently all get a default of three (like old VCL implementation) for nMinimalDiscreteDistance. Ckecked, works as expected. Comitted as r1364705. set Target Milestone to AOO 3.5.0 for PM purpose. fixed in 4.0.0 |