Skip to content

Commit 302f8ba

Browse files
committed
Use updated splash image also in About screen
1 parent 5e90cc5 commit 302f8ba

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: app/src/processing/app/Base.java

+10-2
Original file line numberDiff line numberDiff line change
@@ -1886,8 +1886,16 @@ static public String[] headerListFromIncludePath(File path) throws IOException {
18861886
*/
18871887
@SuppressWarnings("serial")
18881888
public void handleAbout() {
1889-
final Image image = Theme.getLibImage("about", activeEditor,
1890-
Theme.scale(475), Theme.scale(300));
1889+
Image image;
1890+
File f = UpdateCheck.getUpdatedSplashImageFile();
1891+
if (f != null) {
1892+
Toolkit tk = Toolkit.getDefaultToolkit();
1893+
Image unscaled = tk.getImage(f.getAbsolutePath());
1894+
image = Theme.scale(unscaled, activeEditor);
1895+
} else {
1896+
image = Theme.getLibImage("about", activeEditor, //
1897+
Theme.scale(475), Theme.scale(300));
1898+
}
18911899
final Window window = new Window(activeEditor) {
18921900
public void paint(Graphics graphics) {
18931901
Graphics2D g = Theme.setupGraphics2D(graphics);

0 commit comments

Comments
 (0)