changeset 12332:48967684d5de

8080993: Compilation errors with recent clang in awt_parseImage.c and splashscreen_sys.m Reviewed-by: azvegint, bae Contributed-by: staffan.larsen@oracle.com
author serb
date Thu, 25 Jun 2015 15:16:55 +0300
parents 57f4422b7bdb
children e5bdbf87135d
files src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m	Mon Jun 22 15:47:44 2015 +0300
+++ b/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m	Thu Jun 25 15:16:55 2015 +0300
@@ -275,7 +275,6 @@
         [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;
--- a/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c	Mon Jun 22 15:47:44 2015 +0300
+++ b/src/java.desktop/share/native/libawt/awt/image/awt_parseImage.c	Thu Jun 25 15:16:55 2015 +0300
@@ -852,7 +852,7 @@
             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;