feat: borderless fullscreen
This commit is contained in:
@ -55,6 +55,13 @@ pub async fn prepare_display(p: &Profile) -> Result<Option<DisplayInfo>> {
|
||||
}
|
||||
}
|
||||
|
||||
if p.get_str("display-mode", "borderless") == "borderless" && p.get_bool("borderless-fullscreen", false) {
|
||||
settings.borrow_mut().resolution = Resolution::new(
|
||||
p.get_int("rez-w", 1080).try_into().expect("Negative resolution"),
|
||||
p.get_int("rez-h", 1920).try_into().expect("Negative resolution")
|
||||
);
|
||||
}
|
||||
|
||||
display_set.apply()?;
|
||||
displayz::refresh()?;
|
||||
|
||||
@ -65,7 +72,7 @@ pub async fn prepare_display(p: &Profile) -> Result<Option<DisplayInfo>> {
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
pub async fn undo_display(info: DisplayInfo) -> Result<()> {
|
||||
use displayz::{query_displays, Resolution};
|
||||
use displayz::query_displays;
|
||||
|
||||
let display_set = query_displays()?;
|
||||
|
||||
|
Reference in New Issue
Block a user