[cairo] Alpha problems at some resolutions
Behdad Esfahbod
behdad at behdad.org
Sat Jun 21 10:03:20 PDT 2008
On Sat, 2008-06-21 at 16:25 +0300, M Joonas Pihlaja wrote:
> Hi John,
>
> On Fri, 20 Jun 2008, John Perkins wrote:
>
> > I found that clearing the image prior to drawing seems to fix the problem.
> >
> > What I don't understand is how I have never seen random garbage, it is always this transparent yellow.
>
> Looking at the attached image in gimp shows the ARGB value of the
> transparent yellow to be $BAADF00D. That looks like something
> malloc() might initialise memory to in debug builds.
Indeed. From http://en.wikipedia.org/wiki/0xDEADBEEF#Magic_debug_values
0xBAADF00D : Used by Microsoft's LocalAlloc(LMEM_FIXED) to mark
uninitialised allocated heap memory
> Cheers,
>
> Joonas
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list