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 (from parent 1:
7dd8aba
)
2002/07/19 04:42:24
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:49:09 +0000
(06:49 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:49:09 +0000
(06:49 +0000)
darcs-hash:
20040130064909
-2ba56-
60b78f19153c99107f078f376e9e7a846553c40d
.gz
src/org/xwt/Main.java
patch
|
blob
|
history
diff --git
a/src/org/xwt/Main.java
b/src/org/xwt/Main.java
index
d22e436
..
f7a1d69
100644
(file)
--- a/
src/org/xwt/Main.java
+++ b/
src/org/xwt/Main.java
@@
-77,7
+77,9
@@
public class Main extends Applet {
PNG png = PNG.decode(new ByteArrayInputStream(Base64.decode(scarPicture_png_base64)), "bundled scar image");
Surface.scarPicture = Platform.createPicture(png.getData(), png.getWidth(), png.getHeight());
PNG png = PNG.decode(new ByteArrayInputStream(Base64.decode(scarPicture_png_base64)), "bundled scar image");
Surface.scarPicture = Platform.createPicture(png.getData(), png.getWidth(), png.getHeight());
- Resources.loadArchive(Main.class.getClassLoader().getResourceAsStream("org/xwt/builtin.xwar"));
+ InputStream is = Main.class.getClassLoader().getResourceAsStream("org/xwt/builtin.xwar");
+ if (is == null) Platform.criticalAbort("unable to load builtin.xwar");
+ Resources.loadArchive(is);
String initialTemplate = "main";
String initialTemplate = "main";