< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 403,413 ****
vbits[1] = (jbyte) (0xff >> 2);
vbits[sizeof(vbits)-2] = (jbyte) (0xff << 2);
vbits[sizeof(vbits)-1] = 0;
allvalid = JNI_FALSE;
} else {
! if (AwtPalette::UseCustomPalette() && !dynamic) {
// If we plan to use our custom palette (i.e., we are
// not running inside another app and we are not creating
// a dynamic colorModel object), then setup ICM with
// custom palette entries
unsigned int *logicalEntries = palette->GetLogicalEntries();
--- 403,413 ----
vbits[1] = (jbyte) (0xff >> 2);
vbits[sizeof(vbits)-2] = (jbyte) (0xff << 2);
vbits[sizeof(vbits)-1] = 0;
allvalid = JNI_FALSE;
} else {
! if (!dynamic) {
// If we plan to use our custom palette (i.e., we are
// not running inside another app and we are not creating
// a dynamic colorModel object), then setup ICM with
// custom palette entries
unsigned int *logicalEntries = palette->GetLogicalEntries();
< prev index next >