aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nsimage.m14
-rw-r--r--src/nsmenu.m5
-rw-r--r--src/nsterm.m25
3 files changed, 0 insertions, 44 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index 51367915e1b..cc8abf76094 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -179,13 +179,6 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
179 return nil; 179 return nil;
180 } 180 }
181 181
182 /* The next two lines cause the DPI of the image to be ignored.
183 This seems to be the behavior users expect. */
184#ifdef NS_IMPL_COCOA
185#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
186 [image setScalesWhenResized: YES];
187#endif
188#endif
189 [image setSize: NSMakeSize([imgRep pixelsWide], [imgRep pixelsHigh])]; 182 [image setSize: NSMakeSize([imgRep pixelsWide], [imgRep pixelsHigh])];
190 183
191 [image setName: [NSString stringWithUTF8String: SSDATA (file)]]; 184 [image setName: [NSString stringWithUTF8String: SSDATA (file)]];
@@ -355,13 +348,6 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
355 if ([bmr numberOfPlanes] >= 3) 348 if ([bmr numberOfPlanes] >= 3)
356 [bmr getBitmapDataPlanes: pixmapData]; 349 [bmr getBitmapDataPlanes: pixmapData];
357 350
358 /* The next two lines cause the DPI of the image to be ignored.
359 This seems to be the behavior users expect. */
360#ifdef NS_IMPL_COCOA
361#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
362 [self setScalesWhenResized: YES];
363#endif
364#endif
365 [self setSize: NSMakeSize([bmr pixelsWide], [bmr pixelsHigh])]; 351 [self setSize: NSMakeSize([bmr pixelsWide], [bmr pixelsHigh])];
366 352
367 break; 353 break;
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 5c6442ad0e8..59ea3855ed1 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1519,11 +1519,6 @@ ns_popup_dialog (struct frame *f, Lisp_Object header, Lisp_Object contents)
1519 area.size.width = ICONSIZE; 1519 area.size.width = ICONSIZE;
1520 area.size.height= ICONSIZE; 1520 area.size.height= ICONSIZE;
1521 img = [[NSImage imageNamed: @"NSApplicationIcon"] copy]; 1521 img = [[NSImage imageNamed: @"NSApplicationIcon"] copy];
1522#ifdef NS_IMPL_COCOA
1523#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
1524 [img setScalesWhenResized: YES];
1525#endif
1526#endif
1527 [img setSize: NSMakeSize (ICONSIZE, ICONSIZE)]; 1522 [img setSize: NSMakeSize (ICONSIZE, ICONSIZE)];
1528 imgView = [[NSImageView alloc] initWithFrame: area]; 1523 imgView = [[NSImageView alloc] initWithFrame: area];
1529 [imgView setImage: img]; 1524 [imgView setImage: img];
diff --git a/src/nsterm.m b/src/nsterm.m
index f985786e198..05435697cf3 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5936,31 +5936,6 @@ not_in_argv (NSString *arg)
5936} 5936}
5937 5937
5938 5938
5939#ifdef NS_IMPL_COCOA
5940/* Needed to pick up Ctrl-tab and possibly other events that Mac OS X
5941 decided not to send key-down for.
5942 See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html
5943 This only applies on Tiger and earlier.
5944 If it matches one of these, send it on to keyDown. */
5945-(void)keyUp: (NSEvent *)theEvent
5946{
5947 int flags = [theEvent modifierFlags];
5948 int code = [theEvent keyCode];
5949
5950 NSTRACE ("[EmacsView keyUp:]");
5951
5952 if (floor (NSAppKitVersionNumber) <= 824 /*NSAppKitVersionNumber10_4*/ &&
5953 code == 0x30 && (flags & NSEventModifierFlagControl) && !(flags & NSEventModifierFlagCommand))
5954 {
5955 if (NS_KEYLOG)
5956 fprintf (stderr, "keyUp: passed test");
5957 ns_fake_keydown = YES;
5958 [self keyDown: theEvent];
5959 }
5960}
5961#endif
5962
5963
5964/* <NSTextInput> implementation (called through super interpretKeyEvents:]). */ 5939/* <NSTextInput> implementation (called through super interpretKeyEvents:]). */
5965 5940
5966 5941