File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414package org .eclipse .swt .graphics ;
1515
1616import org .eclipse .swt .*;
17- import org .eclipse .swt .internal .ExceptionStash ;
17+ import org .eclipse .swt .internal .* ;
1818import 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 ();
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ public boolean equals(Object object) {
244244 */
245245public 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 {
You can’t perform that action at this time.
0 commit comments