openxr: configurable screen downscale

This commit is contained in:
galister
2024-07-29 22:14:25 +09:00
parent 57ff3ec3bc
commit dcc2cd0575
7 changed files with 58 additions and 17 deletions

View File

@@ -153,6 +153,10 @@ fn def_font() -> Arc<str> {
"LiberationSans:style=Bold".into()
}
fn def_max_height() -> u16 {
1440
}
#[derive(Deserialize, Serialize)]
pub struct GeneralConfig {
#[serde(default = "def_watch_pos")]
@@ -253,6 +257,9 @@ pub struct GeneralConfig {
#[serde(default = "def_true")]
pub use_skybox: bool,
#[serde(default = "def_max_height")]
pub screen_max_height: u16,
}
impl GeneralConfig {