diff --git a/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m b/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m index 07bbd43e0a5..7235367bf60 100644 --- a/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m +++ b/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m @@ -275,7 +275,6 @@ SplashRedrawWindow(Splash * splash) { [image addRepresentation: rep]; float scaleFactor = splash->scaleFactor; if (scaleFactor > 0 && scaleFactor != 1) { - [image setScalesWhenResized:YES]; NSSize size = [image size]; size.width /= scaleFactor; size.height /= scaleFactor; diff --git a/jdk/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c b/jdk/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c index 882c799efc4..4b6b24183be 100644 --- a/jdk/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c +++ b/jdk/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c @@ -852,7 +852,7 @@ setHints(JNIEnv *env, BufImageS_t *imageP) { hintP->needToExpand = TRUE; hintP->expandToNbits = cmodelP->maxNbits; } - else if (rasterP->sppsm.offsets != NULL) { + else { for (i=0; i < rasterP->numBands; i++) { if (!(rasterP->sppsm.offsets[i] % 8)) { hintP->needToExpand = TRUE;