Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e0d2e69a
Commit
e0d2e69a
authored
Jan 23, 2009
by
Adrian Robert
Browse files
* nsimage.m (setPixmapData:): Set to ignore image DPI.
parent
49dbbaf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/nsimage.m
src/nsimage.m
+6
-0
No files found.
src/ChangeLog
View file @
e0d2e69a
...
...
@@ -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 <keramida@freebsd.org> (tiny change)
* alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
...
...
src/nsimage.m
View file @
e0d2e69a
...
...
@@ -400,6 +400,12 @@ - (void) setPixmapData
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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment