X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FPNG.java;h=20979a9ad634ba03fc3a4e08771520808d535924;hb=d5f0e6ca91a3359b09352d3df367d6b6bd22f096;hp=03b05f9426050a69a8745896500bc12a7b70901e;hpb=d0548addbb58927955df317a6f7eb1435ea07394;p=org.ibex.core.git diff --git a/src/org/xwt/PNG.java b/src/org/xwt/PNG.java index 03b05f9..20979a9 100644 --- a/src/org/xwt/PNG.java +++ b/src/org/xwt/PNG.java @@ -54,7 +54,7 @@ public class PNG implements ImageDecoder { // consume the header if ((inputStream.read() != 137) || (inputStream.read() != 80) || (inputStream.read() != 78) || (inputStream.read() != 71) || (inputStream.read() != 13) || (inputStream.read() != 10) || (inputStream.read() != 26) || (inputStream.read() != 10)) { - System.out.println("PNG: error: input file " + name + " is not a PNG file"); + Log.log(this, "PNG: error: input file " + name + " is not a PNG file"); data = new int[] { }; width = height = 0; return; @@ -164,7 +164,7 @@ public class PNG implements ImageDecoder { inputStream.skip(chunkLength); return; } - int len = palette.length; + int len = palette.length; if (colorType == 3) { transparency = true;