Skip to content

Commit

Permalink
added support for different aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
andsam0 committed Feb 17, 2024
1 parent e4cb819 commit 2e7e725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/it/unibo/view/Sizes.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public final class Sizes {
/**
* Minimum screen width.
*/
public static final double MIN_SCREEN_WIDTH = SCREEN_WIDTH * 0.6;
public static final double MIN_SCREEN_WIDTH = SCREEN_HEIGHT * 16 / 9 * 0.6;
/**
* Minimum screen height.
*/
public static final double MIN_SCREEN_HEIGHT = SCREEN_HEIGHT * 0.8;
public static final double MIN_SCREEN_HEIGHT = SCREEN_HEIGHT * 0.81;

private Sizes() {
}
Expand Down

0 comments on commit 2e7e725

Please sign in to comment.