-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathBaseSplash.java
More file actions
24 lines (20 loc) · 693 Bytes
/
BaseSplash.java
File metadata and controls
24 lines (20 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package processing.app;
import java.io.File;
import processing.app.ui.SplashWindow;
import processing.app.ui.Toolkit;
public class BaseSplash {
static public void main(String[] args) {
try {
final boolean hidpi = Toolkit.highResImages();
final String filename = "lib/about-" + (hidpi ? 2 : 1) + "x.png";
File splashFile = Platform.getContentFile(filename);
SplashWindow.splash(splashFile.toURI().toURL(), hidpi);
SplashWindow.invokeMain("processing.app.Base", args);
SplashWindow.disposeSplash();
} catch (Exception e) {
e.printStackTrace();
// !@#!@$$! umm
//SplashWindow.invokeMain("processing.app.Base", args);
}
}
}