projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c26cd5f
)
2002/05/04 05:54:43
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:46:51 +0000
(06:46 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:46:51 +0000
(06:46 +0000)
darcs-hash:
20040130064651
-2ba56-
22057825f3e3f8a33a0851a7fc2e0974b979ccfa
.gz
CHANGES
patch
|
blob
|
history
src/org/xwt/Main.java
patch
|
blob
|
history
diff --git
a/CHANGES
b/CHANGES
index
83a0e01
..
c00ac4e
100644
(file)
--- a/
CHANGES
+++ b/
CHANGES
@@
-117,6
+117,8
@@
30-Apr megacz Platform.java: updated to detect Java14
30-Apr megacz Platform.java: updated to detect Java14
+03-Apr megacz Main.java: fixed a bug that could cause >100% instantiation
+
diff --git
a/src/org/xwt/Main.java
b/src/org/xwt/Main.java
index
1f7903c
..
0bcf0f4
100644
(file)
--- a/
src/org/xwt/Main.java
+++ b/
src/org/xwt/Main.java
@@
-199,7
+199,7
@@
public class Main extends Applet {
} else {
barPos = barW / 2 + (instantiatedUnits * barW) / (initialTemplate.numUnits() * 2);
surf.backbuffer.drawString(Platform.getDefaultFont(), "initializing user interface: " +
} else {
barPos = barW / 2 + (instantiatedUnits * barW) / (initialTemplate.numUnits() * 2);
surf.backbuffer.drawString(Platform.getDefaultFont(), "initializing user interface: " +
- ((instantiatedUnits * 100) / (initialTemplate.numUnits())) +
+ Math.min(100, (instantiatedUnits * 100) / (initialTemplate.numUnits())) +
"% complete", barX, barY - 5, 0xffffffff);
}
if (barPos > barW) barPos = barW;
"% complete", barX, barY - 5, 0xffffffff);
}
if (barPos > barW) barPos = barW;