diff options
| author | Adrian Robert | 2009-01-23 14:08:24 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-01-23 14:08:24 +0000 |
| commit | e0d2e69ae3d9ad1931013626268a712bdb609cd8 (patch) | |
| tree | b9466b572a7147671c4a9b887c028579e6cbbd73 /src | |
| parent | 49dbbaf25319dcc99f5feec23e395bb40a45e1a4 (diff) | |
| download | emacs-e0d2e69ae3d9ad1931013626268a712bdb609cd8.tar.gz emacs-e0d2e69ae3d9ad1931013626268a712bdb609cd8.zip | |
* nsimage.m (setPixmapData:): Set to ignore image DPI.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsimage.m | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0b334b8b1de..fb7ff70f29b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -3,14 +3,19 @@ | |||
| 3 | * emacs.c (main): Do fork+exec under --daemon in Cocoa. | 3 | * emacs.c (main): Do fork+exec under --daemon in Cocoa. |
| 4 | (ns_no_defaults): New declaration. | 4 | (ns_no_defaults): New declaration. |
| 5 | (main): Use it. | 5 | (main): Use it. |
| 6 | |||
| 6 | * nsterm.h (ns_no_defaults): New declaration. | 7 | * nsterm.h (ns_no_defaults): New declaration. |
| 8 | |||
| 7 | * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults. | 9 | * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults. |
| 10 | |||
| 8 | * nsterm.m (ns_no_defaults): New variable. | 11 | * nsterm.m (ns_no_defaults): New variable. |
| 9 | (ns_initialize): Don't read defaults when ns_no_defaults. | 12 | (ns_initialize): Don't read defaults when ns_no_defaults. |
| 10 | (EmacsView-readSelectionFromPasteboard:) | 13 | (EmacsView-readSelectionFromPasteboard:) |
| 11 | (writeSelectionToPasteboard:types:): New stubbed-out methods for | 14 | (writeSelectionToPasteboard:types:): New stubbed-out methods for |
| 12 | NSServicesRequests protocol. (Bug#1435) | 15 | NSServicesRequests protocol. (Bug#1435) |
| 13 | 16 | ||
| 17 | * nsimage.m (setPixmapData:): Set to ignore image DPI. | ||
| 18 | |||
| 14 | 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change) | 19 | 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change) |
| 15 | 20 | ||
| 16 | * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly | 21 | * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly |
diff --git a/src/nsimage.m b/src/nsimage.m index b13c12903ad..c95ad09addd 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -400,6 +400,12 @@ static EmacsImage *ImageList = nil; | |||
| 400 | 400 | ||
| 401 | if ([bmRep numberOfPlanes] >= 3) | 401 | if ([bmRep numberOfPlanes] >= 3) |
| 402 | [bmRep getBitmapDataPlanes: pixmapData]; | 402 | [bmRep getBitmapDataPlanes: pixmapData]; |
| 403 | |||
| 404 | /* The next two lines cause the DPI of the image to be ignored. | ||
| 405 | This seems to be the behavior users expect. */ | ||
| 406 | [self setScalesWhenResized: YES]; | ||
| 407 | [self setSize: NSMakeSize([bmRep pixelsWide], [bmRep pixelsHigh])]; | ||
| 408 | |||
| 403 | break; | 409 | break; |
| 404 | } | 410 | } |
| 405 | } | 411 | } |