diff options
author | Till Brychcy | 2016-09-29 20:53:41 +0000 |
---|---|---|
committer | Lakshmi Shanmugam | 2017-03-23 12:09:26 +0000 |
commit | 528fcab722ccdaa43c8d596494e2f2799889db3c (patch) | |
tree | 58fa1a96f473d331b6f06f2daeb63b15f890779d /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h | |
parent | 010d9d278b66159e1bb8026b19814c336766fc4f (diff) | |
download | eclipse.platform.swt-528fcab722ccdaa43c8d596494e2f2799889db3c.tar.gz eclipse.platform.swt-528fcab722ccdaa43c8d596494e2f2799889db3c.tar.xz eclipse.platform.swt-528fcab722ccdaa43c8d596494e2f2799889db3c.zip |
Bug 502711 - [Cocoa] crashes on „macOS Sierra“ related to NSCopyBits
Replaced the calls to deprecated method NSCopyBits with
NSView.scrollRect() in
GC.copyArea and Canvas.scroll. Removed the native code for NSCopyBits.
Change-Id: I206c76cd6af9230857967fb23641f0773f90e5de
Signed-off-by: Till Brychcy <register.eclipse@brychcy.de>
Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h index 92513cec10..1d72006f83 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h @@ -353,7 +353,6 @@ typedef enum { NSBeep_FUNC, NSBitsPerPixelFromDepth_FUNC, NSCalibratedRGBColorSpace_FUNC, - NSCopyBits_FUNC, NSCountWindows_FUNC, NSCursorAttributeName_FUNC, NSDefaultRunLoopMode_FUNC, @@ -886,6 +885,11 @@ typedef enum { objc_1msgSend__JJLorg_eclipse_swt_internal_cocoa_NSRect_2Lorg_eclipse_swt_internal_cocoa_NSRect_2JD_FUNC, #endif #ifndef JNI64 + objc_1msgSend__IILorg_eclipse_swt_internal_cocoa_NSRect_2Lorg_eclipse_swt_internal_cocoa_NSSize_2_FUNC, +#else + objc_1msgSend__JJLorg_eclipse_swt_internal_cocoa_NSRect_2Lorg_eclipse_swt_internal_cocoa_NSSize_2_FUNC, +#endif +#ifndef JNI64 objc_1msgSend__IILorg_eclipse_swt_internal_cocoa_NSRect_2Z_FUNC, #else objc_1msgSend__JJLorg_eclipse_swt_internal_cocoa_NSRect_2Z_FUNC, |