diff options
author | Silenio Quarti | 2012-10-10 19:39:18 +0000 |
---|---|---|
committer | Silenio Quarti | 2012-10-10 21:07:12 +0000 |
commit | 254001e25f58faa55172860a194a95bd31b61565 (patch) | |
tree | 2433ed2c12da771cce1b2f6c999223f03dd5e028 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa | |
parent | f4412fc58eebec522777379819911580021557cf (diff) | |
download | eclipse.platform.swt-254001e25f58faa55172860a194a95bd31b61565.tar.gz eclipse.platform.swt-254001e25f58faa55172860a194a95bd31b61565.tar.xz eclipse.platform.swt-254001e25f58faa55172860a194a95bd31b61565.zip |
Bug 387755 - GC.copyArea() not work correctly on Mac retina screen
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa')
3 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras index 59a008c494..50174a722f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras @@ -2748,6 +2748,9 @@ </method> </class> <class name="NSScreen" swt_gen="mixed"> + <method selector="backingScaleFactor" swt_gen="true"> + <retval swt_gen="true"></retval> + </method> <method selector="depth" swt_gen="true"> <retval swt_gen="true"></retval> </method> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java index 4bae3a6527..27b8fc9c1e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSScreen.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -24,6 +24,10 @@ public NSScreen(id id) { super(id); } +public double /*float*/ backingScaleFactor() { + return (double /*float*/)OS.objc_msgSend_fpret(this.id, OS.sel_backingScaleFactor); +} + public int depth() { return (int)/*64*/OS.objc_msgSend(this.id, OS.sel_depth); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index 4f7e502538..fa3aa66870 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -1020,6 +1020,7 @@ public static final long /*int*/ sel_availableFonts = sel_registerName("availabl public static final long /*int*/ sel_availableMembersOfFontFamily_ = sel_registerName("availableMembersOfFontFamily:"); public static final long /*int*/ sel_availableTypeFromArray_ = sel_registerName("availableTypeFromArray:"); public static final long /*int*/ sel_backgroundColor = sel_registerName("backgroundColor"); +public static final long /*int*/ sel_backingScaleFactor = sel_registerName("backingScaleFactor"); public static final long /*int*/ sel_badgeLabel = sel_registerName("badgeLabel"); public static final long /*int*/ sel_baselineOffsetInLayoutManager_glyphIndex_ = sel_registerName("baselineOffsetInLayoutManager:glyphIndex:"); public static final long /*int*/ sel_becomeFirstResponder = sel_registerName("becomeFirstResponder"); |