Nixed unused variable references.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@579 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -332,16 +332,12 @@ public class ImageManager
|
||||
public Mirage getMirage (ImageKey key, Rectangle bounds, Colorization[] zations)
|
||||
{
|
||||
BufferedImage src = null;
|
||||
|
||||
float percentageOfDataBuffer = 1;
|
||||
if (bounds == null) {
|
||||
// if they specified no bounds, we need to load up the raw image and determine its
|
||||
// bounds so that we can pass those along to the created mirage
|
||||
src = getImage(key, zations);
|
||||
bounds = new Rectangle(0, 0, src.getWidth(), src.getHeight());
|
||||
|
||||
}
|
||||
|
||||
return new CachedVolatileMirage(this, key, bounds, zations);
|
||||
|
||||
}
|
||||
|
||||
@@ -143,13 +143,11 @@ public class ImageUtil
|
||||
// convert the colors to HSV
|
||||
float[] hsv = new float[3];
|
||||
int[] fhsv = new int[3];
|
||||
int tpixel = -1;
|
||||
for (int i = 0; i < size; i++) {
|
||||
int value = rgbs[i];
|
||||
|
||||
// don't fiddle with alpha pixels
|
||||
if ((value & 0xFF000000) == 0) {
|
||||
tpixel = i;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user