diff options
author | Adrian Robert <Adrian.B.Robert@gmail.com> | 2009-01-23 14:08:24 +0000 |
---|---|---|
committer | Adrian Robert <Adrian.B.Robert@gmail.com> | 2009-01-23 14:08:24 +0000 |
commit | e0d2e69ae3d9ad1931013626268a712bdb609cd8 (patch) | |
tree | b9466b572a7147671c4a9b887c028579e6cbbd73 /src/nsimage.m | |
parent | 49dbbaf25319dcc99f5feec23e395bb40a45e1a4 (diff) | |
download | emacs-e0d2e69ae3d9ad1931013626268a712bdb609cd8.tar.gz |
* nsimage.m (setPixmapData:): Set to ignore image DPI.
Diffstat (limited to 'src/nsimage.m')
-rw-r--r-- | src/nsimage.m | 6 |
1 files changed, 6 insertions, 0 deletions
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; 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; } } |