emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs 24 Mac port


From: YAMAMOTO Mitsuharu
Subject: Re: Emacs 24 Mac port
Date: Tue, 06 Mar 2012 12:52:00 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Sun, 04 Mar 2012 15:24:39 +0900, YAMAMOTO Mitsuharu <address@hidden> 
>>>>> said:

>> The Mac port based on Emacs 24.0.94 pretest is now available from
>> 
>> ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.0.94-mac-2.90.tar.gz

> I've just noticed that HiDPI mode on Mac OS X 10.7.3 gives a blurry
> look for the Mac port (both for Emacs 23 and 24).  I remember that
> it used to work on Mac OS X 10.7.2, and Google Chrome seems to have
> a similar problem.

> Also, animation shown when entering to and exiting from full screen
> seems to be wrong for HiDPI mode.  Unfortunately I don't remember if
> it used to be correct on Mac OS X 10.7.2.

The patch below seems to work.  It can be applied to Emacs 23.4 Mac
port 2.0 or Emacs 24.0.94 Mac port 2.90.

I also regenerated macuvs.h using IVD_Sequences.txt 2012-03-02 version
and put it to

  ftp://ftp.math.s.chiba-u.ac.jp/emacs/macuvs.h-2012-03-02.gz

You can replace the original src/macuvs.h (for Mac port 2.0 or 2.90)
with it if you want.

                                     YAMAMOTO Mitsuharu
                                address@hidden

=== modified file 'mac/Emacs.app/Contents/Info.plist'
*** mac/Emacs.app/Contents/Info.plist   2012-03-03 06:05:20 +0000
--- mac/Emacs.app/Contents/Info.plist   2012-03-06 03:31:31 +0000
***************
*** 71,76 ****
--- 71,78 ----
        </array>
        <key>NSAppleScriptEnabled</key>
        <string>YES</string>
+       <key>NSPrincipalClass</key>
+       <string>EmacsApplication</string>
        <key>NSServices</key>
        <array>
                <dict>

=== modified file 'src/macappkit.h'
*** src/macappkit.h     2012-03-03 06:05:20 +0000
--- src/macappkit.h     2012-03-05 03:44:55 +0000
***************
*** 774,779 ****
--- 774,780 ----
  - (NSWindowAnimationBehavior)animationBehavior;
  - (void)setAnimationBehavior:(NSWindowAnimationBehavior)newAnimationBehavior;
  - (void)toggleFullScreen:(id)sender;
+ - (CGFloat)backingScaleFactor;
  @end
  #endif
  
***************
*** 850,854 ****
--- 851,859 ----
  + (void)runAnimationGroup:(void (^)(NSAnimationContext *context))changes
          completionHandler:(void (^)(void))completionHandler;
  @end
+ 
+ @interface CALayer (AvailableOn1070AndLater)
+ @property CGFloat contentsScale;
+ @end
  #endif
  #endif

=== modified file 'src/macappkit.m'
*** src/macappkit.m     2012-03-03 06:05:20 +0000
--- src/macappkit.m     2012-03-05 03:44:55 +0000
***************
*** 2912,2917 ****
--- 2912,2918 ----
  #endif
    layer.bounds = CGRectMake (0, 0, [bitmap pixelsWide], [bitmap pixelsHigh]);
    layer.contents = (id) [bitmap CGImage];
+   layer.contentsScale = [transitionWindow backingScaleFactor];
    layer.contentsGravity = kCAGravityTopLeft;
    transitionContentView = [transitionWindow contentView];
    [transitionContentView setLayer:layer];




reply via email to

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