# HG changeset patch # User Adrian Robert # Date 1232719704 0 # Node ID 8bf66a156bc50a394e75b66fa8784926500733a1 # Parent 9c7e692c226a9c93cd3b6ba91f4f9b2bfe15510f * nsimage.m (setPixmapData:): Set to ignore image DPI. diff -r 9c7e692c226a -r 8bf66a156bc5 src/ChangeLog --- a/src/ChangeLog Fri Jan 23 13:52:24 2009 +0000 +++ b/src/ChangeLog Fri Jan 23 14:08:24 2009 +0000 @@ -3,14 +3,19 @@ * emacs.c (main): Do fork+exec under --daemon in Cocoa. (ns_no_defaults): New declaration. (main): Use it. + * nsterm.h (ns_no_defaults): New declaration. + * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults. + * nsterm.m (ns_no_defaults): New variable. (ns_initialize): Don't read defaults when ns_no_defaults. (EmacsView-readSelectionFromPasteboard:) (writeSelectionToPasteboard:types:): New stubbed-out methods for NSServicesRequests protocol. (Bug#1435) + * nsimage.m (setPixmapData:): Set to ignore image DPI. + 2009-01-23 Giorgos Keramidas (tiny change) * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly diff -r 9c7e692c226a -r 8bf66a156bc5 src/nsimage.m --- a/src/nsimage.m Fri Jan 23 13:52:24 2009 +0000 +++ b/src/nsimage.m Fri Jan 23 14:08:24 2009 +0000 @@ -400,6 +400,12 @@ if ([bmRep numberOfPlanes] >= 3) [bmRep getBitmapDataPlanes: pixmapData]; + + /* The next two lines cause the DPI of the image to be ignored. + This seems to be the behavior users expect. */ + [self setScalesWhenResized: YES]; + [self setSize: NSMakeSize([bmRep pixelsWide], [bmRep pixelsHigh])]; + break; } }