Skip to content

Commit

Permalink
Fix OS UI scaling breaking zoom and pan
Browse files Browse the repository at this point in the history
  • Loading branch information
FeldrinH committed Sep 18, 2023
1 parent 4d5209f commit 245b6d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/ee/ut/dendroloj/GraphGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
class GraphGUI {
public static void init(double uiScale) {
System.setProperty("org.graphstream.ui", "swing");
System.setProperty("sun.java2d.uiScale", "1");

Graph graph = new SingleGraph("DendroloJ");
graph.setAttribute("ui.quality");
Expand Down

0 comments on commit 245b6d8

Please sign in to comment.