summaryrefslogtreecommitdiff
path: root/src/sdl.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-18 12:38:11 -0500
committerpommicket <pommicket@gmail.com>2022-12-18 12:38:11 -0500
commit73ee0bb21050b305dac5352e07c7cfe03947be66 (patch)
tree97f141816265d752f54c5534d6c85de2e592e8dc /src/sdl.rs
parent53446631bf579c85786af1b4c8fcd54566c0d391 (diff)
remove windows cmd window (hopefully, needs testing)
Diffstat (limited to 'src/sdl.rs')
-rw-r--r--src/sdl.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdl.rs b/src/sdl.rs
index 056e8d8..b354c59 100644
--- a/src/sdl.rs
+++ b/src/sdl.rs
@@ -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,