diff options
author | culler <culler> | 2017-11-09 03:37:46 (GMT) |
---|---|---|
committer | culler <culler> | 2017-11-09 03:37:46 (GMT) |
commit | 6b0ff4b181b7cca5c965201e71f929d0086f2f67 (patch) | |
tree | de23a01acefac4dba17170f08c210bcb0da20053 /macosx/tkMacOSXImage.c | |
parent | 4ae7f131228753fdb0df4c4ff42143210b1a41a8 (diff) | |
download | tk-6b0ff4b181b7cca5c965201e71f929d0086f2f67.zip tk-6b0ff4b181b7cca5c965201e71f929d0086f2f67.tar.gz tk-6b0ff4b181b7cca5c965201e71f929d0086f2f67.tar.bz2 |
Minor changes to deal with compiler warnings for different OSX
versions. Now builds cleanly with deployment targets 10.6 - 10.13.
Diffstat (limited to 'macosx/tkMacOSXImage.c')
-rw-r--r-- | macosx/tkMacOSXImage.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c index d08accc..d0c1945 100644 --- a/macosx/tkMacOSXImage.c +++ b/macosx/tkMacOSXImage.c @@ -160,14 +160,14 @@ XGetImage( char R, G, B, A; unsigned int scalefactor=1, scaled_height=height, scaled_width=width; NSWindow *win = TkMacOSXDrawableWindow(drawable); - static enum {unknown, no, yes} supports_retina = unknown; + static enum {unknown, no, yes} has_retina = unknown; - if (win && supports_retina == unknown) { - supports_retina = [win respondsToSelector: - @selector(backingScaleFactor)]? yes: no; + if (win && has_retina == unknown) { + has_retina = [win respondsToSelector:@selector(backingScaleFactor)]? + yes : no; } - if (supports_retina == yes) { + if (has_retina == yes) { /* * We only allow scale factors 1 or 2, as Apple currently does. */ |