Skip to content

Commit

Permalink
- code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Oct 26, 2024
1 parent 72d2e41 commit 1005ee9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/mediathek/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,10 @@ private static void checkUiScaleSetting() {
// not an int -> show warning
// fractional scale is NOT supported under Linux, must use integer only.
var scaleFactor = Float.parseFloat(strScale);
System.out.println("uiScale factor: " + scaleFactor);
logger.trace("old uiScale factor {}", scaleFactor);
var newScale = Math.round(scaleFactor);
System.out.println("new scale: " + newScale);
logger.trace("new uiScale factor {}", newScale);

JOptionPane.showMessageDialog(null,
"<html>" +
"Sie verwenden den Parameter <i>-Dsun.java2d.uiScale=" + strScale + "</i>.<br>" +
Expand Down

0 comments on commit 1005ee9

Please sign in to comment.