Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,14 @@ public void run() throws Exception {

if (splashShell == null)
return;
if (background != null)
if (background != null) {
splashShell.setBackgroundImage(background);
Rectangle imageBounds = background.getBounds();
Rectangle shellBounds = splashShell.getBounds();
if (imageBounds.width > shellBounds.width || imageBounds.height > shellBounds.height) {
splashShell.setSize(imageBounds.width, imageBounds.height);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the issue that the image is too large/small for the shell (because Platform UI applies quarter scaling while Equinox native launcher uses integer200) and not that the shell does not fit to the image? Changing the shell size here will result in a rescaling of the splash during application startup, won't it?

}
}
}

Dictionary<String, Object> properties = new Hashtable<>();
Expand Down
Loading