Make viewport the same size as the window

This commit is contained in:
crumblingstatue 2023-04-06 23:02:45 +02:00
parent 4fb622989b
commit e2a38e80d7
3 changed files with 27 additions and 27 deletions

View file

@ -37,11 +37,11 @@ impl ScreenPos {
}
}
pub const NATIVE_RESOLUTION: ScreenRes = ScreenRes { w: 960, h: 540 };
const DEFAULT_RES: ScreenRes = ScreenRes { w: 960, h: 540 };
pub fn make_window() -> RenderWindow {
let mut rw = RenderWindow::new(
NATIVE_RESOLUTION.to_sf(),
DEFAULT_RES.to_sf(),
"Mantle Diver",
Style::DEFAULT,
&ContextSettings::default(),