Skip to content

Commit 213cfe1

Browse files
committed
added logged warning
1 parent 9d8b57c commit 213cfe1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

megamek/src/megamek/client/ui/swing/util/UIUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ public static Dimension getScaledScreenSize(Component component) {
601601
.getDefaultScreenDevice()
602602
.getDefaultConfiguration();
603603
} catch (HeadlessException e) {
604+
logger.warn("No GraphicsConfiguration found, using default size");
604605
return new Dimension(800, 600);
605606
}
606607
}

0 commit comments

Comments
 (0)