Skip to content

Commit

Permalink
8243255: Font size is large in JavaFX app with enabled Monocle on Ras…
Browse files Browse the repository at this point in the history
…pberry Pi

Reviewed-by: kcr, jvos
  • Loading branch information
Alexander Scherbatiy authored and kevinrushforth committed May 6, 2020
1 parent 2e90076 commit 0385563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ private static File getRTDir() {
// Strip everything after the last "/" or "\" to get rid of the jar filename
int lastIndexOfSlash = Math.max(
s.lastIndexOf('/'), s.lastIndexOf('\\'));
return new File(new URL(s.substring(0, lastIndexOfSlash + 1)).getPath())
.getParentFile();
return new File(new URL(s.substring(0, lastIndexOfSlash + 1)).getPath());
} catch (MalformedURLException e) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected Screen[] staticScreen_getScreens() {
0, 0, ns.getWidth(), ns.getHeight(),
0, 0, ns.getWidth(), ns.getHeight(),
0, 0, ns.getWidth(), ns.getHeight(),
ns.getWidth(), ns.getHeight(),
ns.getDPI(), ns.getDPI(),
1.f, 1.f, ns.getScale(), ns.getScale());
// Move the cursor to the middle of the screen
MouseState mouseState = new MouseState();
Expand Down

0 comments on commit 0385563

Please sign in to comment.