aboutsummaryrefslogtreecommitdiff
path: root/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m')
-rw-r--r--src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m b/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m
index 0eaf688ca..c71c6361f 100644
--- a/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m
+++ b/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m
@@ -131,11 +131,7 @@ char* SplashGetScaledImageName(const char* jar, const char* file,
NSAutoreleasePool *pool = [NSAutoreleasePool new];
*scaleFactor = 1;
char* scaledFile = nil;
- __block float screenScaleFactor = 1;
-
- [ThreadUtilities performOnMainThreadWaiting:YES block:^(){
- screenScaleFactor = [SplashNSScreen() backingScaleFactor];
- }];
+ float screenScaleFactor = 1;
if (screenScaleFactor > 1) {
NSString *fileName = [NSString stringWithUTF8String: file];