< prev index next >
src/java.desktop/unix/classes/sun/awt/X11CustomCursor.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2014, 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) 1997, 2018, 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
*** 59,69 ****
public int compareTo(CCount cc) {
return cc.count - count;
}
}
! int tmp[] = new int[pixels.length];
for (int i=0; i<pixels.length; i++) {
if ((pixels[i] & 0xff000000) == 0) {
tmp[i] = -1;
} else {
tmp[i] = pixels[i] & 0x00ffffff;
--- 59,69 ----
public int compareTo(CCount cc) {
return cc.count - count;
}
}
! int[] tmp = new int[pixels.length];
for (int i=0; i<pixels.length; i++) {
if ((pixels[i] & 0xff000000) == 0) {
tmp[i] = -1;
} else {
tmp[i] = pixels[i] & 0x00ffffff;
*** 71,81 ****
}
java.util.Arrays.sort(tmp);
int fc = 0x000000;
int bc = 0xffffff;
! CCount cols[] = new CCount[pixels.length];
int is = 0;
int numColors = 0;
while ( is < pixels.length ) {
if (tmp[is] != -1) {
--- 71,81 ----
}
java.util.Arrays.sort(tmp);
int fc = 0x000000;
int bc = 0xffffff;
! CCount[] cols = new CCount[pixels.length];
int is = 0;
int numColors = 0;
while ( is < pixels.length ) {
if (tmp[is] != -1) {
< prev index next >