mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-15 18:39:40 +01:00
always make the window resizeable (#305)
This commit is contained in:
1 parent
7ab57d592b
commit
f6b2342e0e
1 file changed
+3
-4
+3
-4
@@ -7,14 +7,13 @@ pub fn init(device: &mut device::Device) {
|
||||
|
||||
let title = std::ffi::CString::new("gopher64").unwrap();
|
||||
|
||||
let mut flags = sdl3_sys::video::SDL_WINDOW_VULKAN;
|
||||
let mut flags = sdl3_sys::video::SDL_WINDOW_VULKAN
|
||||
| sdl3_sys::video::SDL_WINDOW_RESIZABLE
|
||||
| sdl3_sys::video::SDL_WINDOW_INPUT_FOCUS;
|
||||
|
||||
if device.ui.fullscreen {
|
||||
flags |= sdl3_sys::video::SDL_WINDOW_FULLSCREEN;
|
||||
} else {
|
||||
flags |= sdl3_sys::video::SDL_WINDOW_RESIZABLE;
|
||||
}
|
||||
flags |= sdl3_sys::video::SDL_WINDOW_INPUT_FOCUS;
|
||||
|
||||
let window_width;
|
||||
let window_height;
|
||||
|
||||
Reference in new issue
Block a user