updated to borderless fullscreen in order to work
This commit is contained in:
parent
b033c796d8
commit
09abd228f7
2 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,7 @@ pub fn toggle_fullscreeen(
|
||||||
|
|
||||||
if input.pressed(KeyCode::F) /*&& input.just_pressed(KeyCode::Return) */ {
|
if input.pressed(KeyCode::F) /*&& input.just_pressed(KeyCode::Return) */ {
|
||||||
if window.mode() == WindowMode::Windowed {
|
if window.mode() == WindowMode::Windowed {
|
||||||
window.set_mode(WindowMode::Fullscreen);
|
window.set_mode(WindowMode::BorderlessFullscreen);
|
||||||
} else {
|
} else {
|
||||||
window.set_mode(WindowMode::Windowed);
|
window.set_mode(WindowMode::Windowed);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ fn main() {
|
||||||
width: 1280.0,
|
width: 1280.0,
|
||||||
height: 720.0,
|
height: 720.0,
|
||||||
present_mode: PresentMode::AutoVsync,
|
present_mode: PresentMode::AutoVsync,
|
||||||
|
mode: WindowMode::BorderlessFullscreen,
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..default()
|
..default()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue