projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2002/05/16 04:21:02
[org.ibex.core.git]
/
src
/
org
/
xwt
/
Resources.java
diff --git
a/src/org/xwt/Resources.java
b/src/org/xwt/Resources.java
index
be058d3
..
f2a1cdc
100644
(file)
--- a/
src/org/xwt/Resources.java
+++ b/
src/org/xwt/Resources.java
@@
-82,9
+82,10
@@
public class Resources {
return super.read();
}
public int read(byte[] b, int off, int len) throws IOException {
return super.read();
}
public int read(byte[] b, int off, int len) throws IOException {
- bytesDownloaded += len;
+ int ret = super.read(b, off, len);
+ if (ret != -1) bytesDownloaded += ret;
Main.updateSplashScreen();
Main.updateSplashScreen();
- return super.read(b, off, len);
+ return ret;
}
});
for(ZipEntry ze = zis.getNextEntry(); ze != null; ze = zis.getNextEntry()) {
}
});
for(ZipEntry ze = zis.getNextEntry(); ze != null; ze = zis.getNextEntry()) {