Skip to content

Commit

Permalink
Remove linux mitigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mynttt authored Sep 21, 2022
1 parent 9010daf commit 8a04170
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/de/hshannover/inform/gnuman/SceneManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,6 @@ public void run() {
}
}
rootStage.setScene(scenes[state.ordinal()]);

if(GameLauncher.RUN_LINUX_MITIGATION) {
var width = scenes[state.ordinal()].getWidth() + GameLauncher.LINUX_RESIZE_BUG_MITIGATION_OFFSET_X;
var height = scenes[state.ordinal()].getHeight() + GameLauncher.LINUX_RESIZE_BUG_MITIGATION_OFFSET_Y;
rootStage.setMaxWidth(width);
rootStage.setMaxHeight(height);
rootStage.setMinWidth(width);
rootStage.setMinHeight(height);
}

current = state;
Log.info(getClass().getSimpleName(), "UI_STATE -> " + state.toString());
}
Expand Down

0 comments on commit 8a04170

Please sign in to comment.