8080993: Compilation errors with recent clang in awt_parseImage.c and splashscreen_sys.m
Reviewed-by: azvegint, bae
This commit is contained in:
parent
3d7db7c9f5
commit
9f34fe51a8
@ -275,7 +275,6 @@ SplashRedrawWindow(Splash * splash) {
|
|||||||
[image addRepresentation: rep];
|
[image addRepresentation: rep];
|
||||||
float scaleFactor = splash->scaleFactor;
|
float scaleFactor = splash->scaleFactor;
|
||||||
if (scaleFactor > 0 && scaleFactor != 1) {
|
if (scaleFactor > 0 && scaleFactor != 1) {
|
||||||
[image setScalesWhenResized:YES];
|
|
||||||
NSSize size = [image size];
|
NSSize size = [image size];
|
||||||
size.width /= scaleFactor;
|
size.width /= scaleFactor;
|
||||||
size.height /= scaleFactor;
|
size.height /= scaleFactor;
|
||||||
|
@ -852,7 +852,7 @@ setHints(JNIEnv *env, BufImageS_t *imageP) {
|
|||||||
hintP->needToExpand = TRUE;
|
hintP->needToExpand = TRUE;
|
||||||
hintP->expandToNbits = cmodelP->maxNbits;
|
hintP->expandToNbits = cmodelP->maxNbits;
|
||||||
}
|
}
|
||||||
else if (rasterP->sppsm.offsets != NULL) {
|
else {
|
||||||
for (i=0; i < rasterP->numBands; i++) {
|
for (i=0; i < rasterP->numBands; i++) {
|
||||||
if (!(rasterP->sppsm.offsets[i] % 8)) {
|
if (!(rasterP->sppsm.offsets[i] % 8)) {
|
||||||
hintP->needToExpand = TRUE;
|
hintP->needToExpand = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user