Skip to content

Commit

Permalink
Setting resizability to false and fixing window dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
tdgood committed Dec 5, 2017
1 parent ab18b9a commit 12c1153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/github/jmatcj/ld40/LDJam40.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void init() throws Exception {
@Override
public void start(Stage primaryStage) throws Exception {
Canvas canvas = new Canvas(1280, 720);
Scene scene = new Scene(new Group(canvas));
Scene scene = new Scene(new Group(canvas), 1270, 710);
primaryStage.setScene(scene);
GraphicsContext gc = canvas.getGraphicsContext2D();

Expand All @@ -45,6 +45,7 @@ public void handle(long now) {
};
gameLoop.start();

primaryStage.setResizable(false);
primaryStage.show();

game.playTheme();
Expand Down

0 comments on commit 12c1153

Please sign in to comment.