Summary: | Image surfaces do not start out blank by default | ||
---|---|---|---|
Product: | cairo | Reporter: | Dom Lachowicz <domlachowicz> |
Component: | png functions | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | critical | ||
Priority: | high | Keywords: | patch |
Version: | 1.1.1 | ||
Hardware: | x86 (IA32) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Dom Lachowicz
2006-02-06 04:51:55 UTC
I'm weary that the solution I'll be told (and the workaround already posted in that librsvg bug) is "use CAIRO_OPERATOR_CLEAR and cairo_paint(). But I'd like to preempt that if possible. I think that the metaphor cairo should follow is as follows: An artist asks her friend for a sheet of paper to draw on. At this point, the friend can do one of two things: 1) Give the artist back a clean sheet of paper (zero the pixels by default) 2) Give the artist back a piece of paper with complete with scribbles done by her 2-year old daughter, and a bottle of white out (CAIRO_OPERATOR_CLEAR, cairo_paint()). Caveat emptor. I think if this is an appropriate analogy, #1 is clearly correct and #2 would (deservedly) get a blank stare from the artist. Dom, You win. That behavior was really annoying. I've just committed a change to 1.1.1 to fix this, and I mailed out to the cairo list asking for any objections: http://lists.freedesktop.org/archives/cairo/2006-April/006692.html If anyone has any compelling objections, we can re-open this. But for now, it is closed. -Carl PS. And thanks for the patch! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.