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 14
14
package org .eclipse .swt .graphics ;
15
15
16
16
import org .eclipse .swt .*;
17
- import org .eclipse .swt .internal .ExceptionStash ;
17
+ import org .eclipse .swt .internal .* ;
18
18
import org .eclipse .swt .internal .cocoa .*;
19
19
20
20
/**
@@ -244,7 +244,7 @@ public void dispose () {
244
244
}
245
245
246
246
destroy ();
247
- disposed = true ;
247
+ disposed = true ;
248
248
if (tracking ) {
249
249
synchronized (trackingLock ) {
250
250
printErrors ();
@@ -622,7 +622,7 @@ protected void init () {
622
622
/* Initialize the system font slot */
623
623
boolean smallFonts = System .getProperty ("org.eclipse.swt.internal.carbon.smallFonts" ) != null ;
624
624
double systemFontSize = smallFonts ? NSFont .smallSystemFontSize () : NSFont .systemFontSize ();
625
- final int DOTS_PER_INCH = 96 ;
625
+ final int DOTS_PER_INCH = 72 ;
626
626
Point dpi = this .dpi = getDPI ();
627
627
NSFont font = NSFont .systemFontOfSize (systemFontSize * dpi .y / DOTS_PER_INCH );
628
628
font .retain ();
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ public boolean equals(Object object) {
244
244
*/
245
245
public FontData [] getFontData () {
246
246
if (isDisposed ()) SWT .error (SWT .ERROR_GRAPHIC_DISPOSED );
247
- final int DOTS_PER_INCH = 96 ;
247
+ final int DOTS_PER_INCH = 72 ;
248
248
NSAutoreleasePool pool = null ;
249
249
if (!NSThread .isMainThread ()) pool = (NSAutoreleasePool ) new NSAutoreleasePool ().alloc ().init ();
250
250
try {
You can’t perform that action at this time.
0 commit comments