mirror of
https://github.com/hinto-janai/gupax.git
synced 2024-11-17 09:47:36 +00:00
app: change max frame size to 4k (3840×2160)
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
This commit is contained in:
parent
c0161010fa
commit
3b0d247bc6
1 changed files with 3 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue