[macemacsjp-english 69] Re: Problem while applying tranparency-patch to latest CVS Emacs

Back to archive index

David Reitter david****@gmail*****
Tue May 3 03:57:17 JST 2005


Martin -

I wrote to Steven Tamm a couple of weeks ago in support of the patch - 
it doesn't do anything harmful IMHO...

> Hunk #3 FAILED at 9911.
> 1 out of 3 hunks FAILED -- saving rejects to file src/macterm.c.rej

This is fairly simply to do manually - just insert four lines at the 
end.
Or, apply this patch to macterm.c (you'll still need the original for 
w32term.c):

*** macterm.c   Mon May  2 08:08:47 2005
--- macterm.c.orig      Sun May  1 09:06:43 2005
***************
*** 320,328 ****
   extern void menubar_selection_callback (FRAME_PTR, int);
   extern void set_frame_menubar (FRAME_PTR, int, int);

- /* Make Transparency */
- int mac_transparency_alpha;
-
   /* X display function emulation */

   void
--- 320,325 ----
***************
*** 5326,5333 ****
     f->win_gravity = NorthWestGravity;
     x_wm_set_size_hint (f, (long) 0, 0);

-   SetWindowAlpha (f->output_data.mac->mWP, 
((float)mac_transparency_alpha/100));
-
     SizeWindow (FRAME_MAC_WINDOW (f), pixelwidth, pixelheight, 0);
   #if TARGET_API_MAC_CARBON
     if (f->output_data.mac->hourglass_control)
--- 5323,5328 ----
***************
*** 9987,9999 ****
   The text will be rendered using Core Graphics text rendering which
   may anti-alias the text.  */);
     Vmac_use_core_graphics = Qnil;
-
-
-    DEFVAR_INT ("mac-transparency-alpha", &mac_transparency_alpha,
-      doc: /* Transparency ratio, can be set integer between 0 to 100.
-  0 means fully transparent, 100 means non transparent */);
-    mac_transparency_alpha = 100;
-

     /* Register an entry for `mac-roman' so that it can be used when
        creating the terminal frame on Mac OS 9 before loading
--- 9982,9987 ----




More information about the macemacsjp-english mailing list
Back to archive index