diff options
author | pommicket <pommicket@gmail.com> | 2022-12-18 12:38:11 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-18 12:38:11 -0500 |
commit | 73ee0bb21050b305dac5352e07c7cfe03947be66 (patch) | |
tree | 97f141816265d752f54c5534d6c85de2e592e8dc /src/sdl.rs | |
parent | 53446631bf579c85786af1b4c8fcd54566c0d391 (diff) |
remove windows cmd window (hopefully, needs testing)
Diffstat (limited to 'src/sdl.rs')
-rw-r--r-- | src/sdl.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -671,6 +671,7 @@ impl SDL_AudioSpec { #[link(name = "SDL2", kind = "dylib")] extern "C" { fn SDL_Init(flags: u32) -> c_int; + fn SDL_SetMainReady(); fn SDL_CreateWindow( title: *const c_char, x: c_int, @@ -979,6 +980,10 @@ unsafe fn get_err() -> String { String::from_utf8_lossy(cstr.to_bytes()).to_string() } +pub unsafe fn set_main_ready() { + SDL_SetMainReady(); +} + pub unsafe fn create_window( title: &str, width: i32, |