emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: png images in tool-bar / alpha mask


From: YAMAMOTO Mitsuharu
Subject: Re: png images in tool-bar / alpha mask
Date: Fri, 04 Apr 2008 08:12:15 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Thu, 3 Apr 2008 23:42:46 +0100, David Reitter <address@hidden> said:

>         mask = image_spec_value (spec, QCmask, &found_p);
> + #if defined (MAC_OS) && USE_CG_DRAWING
> +       if (!NILP(mask) && img->data.ptr_val != NULL)
> +         {
> +           CGImageRelease (img->data.ptr_val);
> +           img->data.ptr_val = NULL;
> +         }
> + #endif

`:mask nil' means removing the mask.

> + #ifdef USE_CG_DRAWING
> +   img->data.ptr_val = image; /* retain original data */
> + #endif

Should be #if instead of #ifdef.

>      CGContextDrawImage (context, rectangle, image);
>      QDEndCGContext (ximg, &context);
> -   CGImageRelease (image);

Need to release it if !USE_CG_DRAWING.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]