From ef131546e42a94a495954feaa00e5218d7f8ba79 Mon Sep 17 00:00:00 2001
From: hinto-janaiyo <hinto.janaiyo@protonmail.com>
Date: Thu, 22 Dec 2022 22:21:05 -0500
Subject: [PATCH] =?UTF-8?q?app:=20change=20max=20frame=20size=20to=204k=20?=
 =?UTF-8?q?(3840=C3=972160)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

If the user fullscreens, restricting to the 4:3 aspect ratio
doesn't make sense, so change the test for only the default/min.

Max is 4k since... who owns 8k monitors :D
---
 src/constants.rs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/constants.rs b/src/constants.rs
index 9b18f5f..c0a2ed2 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -33,8 +33,8 @@ pub const GUPAX_VERSION_UNDERSCORE: &str = concat!(
 // App frame resolution, [4:3] aspect ratio, [1.33:1]
 pub const APP_MIN_WIDTH: f32 = 640.0;
 pub const APP_MIN_HEIGHT: f32 = 480.0;
-pub const APP_MAX_WIDTH: f32 = 2900.0;
-pub const APP_MAX_HEIGHT: f32 = 2180.0;
+pub const APP_MAX_WIDTH: f32 = 3840.0;
+pub const APP_MAX_HEIGHT: f32 = 2160.0;
 // Default, 1280x960
 pub const APP_DEFAULT_WIDTH: f32 = 1280.0;
 pub const APP_DEFAULT_HEIGHT: f32 = 960.0;
@@ -319,9 +319,8 @@ mod test {
 	}
 
 	#[test]
-	fn app_ratio_is_4_by_3() {
+	fn default_app_ratio_is_4_by_3() {
 		assert_eq!(format!("{:.3}", crate::APP_MIN_WIDTH/crate::APP_MIN_HEIGHT), "1.333");
-		assert_eq!(format!("{:.3}", crate::APP_MAX_WIDTH/crate::APP_MAX_HEIGHT), "1.333");
 		assert_eq!(format!("{:.3}", crate::APP_DEFAULT_WIDTH/crate::APP_DEFAULT_HEIGHT), "1.333");
 	}