Skip to content

Commit 3a82815

Browse files
Cocoa test fix
1 parent 349fd99 commit 3a82815

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Device.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
package org.eclipse.swt.graphics;
1515

1616
import org.eclipse.swt.*;
17-
import org.eclipse.swt.internal.ExceptionStash;
17+
import org.eclipse.swt.internal.*;
1818
import org.eclipse.swt.internal.cocoa.*;
1919

2020
/**
@@ -244,7 +244,7 @@ public void dispose () {
244244
}
245245

246246
destroy ();
247-
disposed = true;
247+
disposed = true;
248248
if (tracking) {
249249
synchronized (trackingLock) {
250250
printErrors ();
@@ -622,7 +622,7 @@ protected void init () {
622622
/* Initialize the system font slot */
623623
boolean smallFonts = System.getProperty("org.eclipse.swt.internal.carbon.smallFonts") != null;
624624
double systemFontSize = smallFonts ? NSFont.smallSystemFontSize() : NSFont.systemFontSize();
625-
final int DOTS_PER_INCH = 96;
625+
final int DOTS_PER_INCH = 72;
626626
Point dpi = this.dpi = getDPI();
627627
NSFont font = NSFont.systemFontOfSize(systemFontSize * dpi.y / DOTS_PER_INCH);
628628
font.retain();

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Font.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public boolean equals(Object object) {
244244
*/
245245
public FontData[] getFontData() {
246246
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
247-
final int DOTS_PER_INCH = 96;
247+
final int DOTS_PER_INCH = 72;
248248
NSAutoreleasePool pool = null;
249249
if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init();
250250
try {

0 commit comments

Comments
 (0)