mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 04:25:00 +01:00
Make viewport the same size as the window
This commit is contained in:
parent
4fb622989b
commit
e2a38e80d7
3 changed files with 27 additions and 27 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue