/[classpath]/classpath/java/awt/image/IndexColorModel.java
ViewVC logotype

Diff of /classpath/java/awt/image/IndexColorModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mkoch, Tue Sep 28 09:43:13 2004 UTC revision 1.10 by mkoch, Fri Oct 1 08:30:12 2004 UTC
# Line 69  public class IndexColorModel extends Col Line 69  public class IndexColorModel extends Col
69    private boolean opaque;    private boolean opaque;
70    private int trans = -1;    private int trans = -1;
71    private int[] rgb;    private int[] rgb;
72    private BigInteger validBits = new BigInteger("0");    private BigInteger validBits = BigInteger.ZERO;
73    
74    /**    /**
75     * Each array much contain <code>size</code> elements.  For each     * Each array much contain <code>size</code> elements.  For each
# Line 152  public class IndexColorModel extends Col Line 152  public class IndexColorModel extends Col
152        }        }
153    
154      // Generate a bigint with 1's for every pixel      // Generate a bigint with 1's for every pixel
155      validBits.setBit(size);      validBits = validBits.setBit(size).subtract(BigInteger.ONE);
     validBits.subtract(new BigInteger("1"));  
156    }    }
157    
158    /**    /**
# Line 195  public class IndexColorModel extends Col Line 194  public class IndexColorModel extends Col
194      opaque = !hasAlpha;      opaque = !hasAlpha;
195      this.trans = trans;      this.trans = trans;
196      // Generate a bigint with 1's for every pixel      // Generate a bigint with 1's for every pixel
197      validBits.setBit(size);      validBits = validBits.setBit(size).subtract(BigInteger.ONE);
     validBits.subtract(new BigInteger("1"));  
198    }    }
199    
200    /**    /**
# Line 229  public class IndexColorModel extends Col Line 227  public class IndexColorModel extends Col
227      opaque = !hasAlpha;      opaque = !hasAlpha;
228      this.trans = trans;      this.trans = trans;
229      // Generate a bigint with 1's for every pixel      // Generate a bigint with 1's for every pixel
230      validBits.setBit(size);      validBits = validBits.setBit(size).subtract(BigInteger.ONE);
     validBits.subtract(new BigInteger("1"));  
231    }    }
232    
233    /**    /**

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26