Skip to content

Commit 4583b3d

Browse files
authored
fix panic render_ex (#1505)
1 parent 1fac15b commit 4583b3d

4 files changed

Lines changed: 318 additions & 243 deletions

File tree

sdl2-sys/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,8 @@ fn generate_bindings(target: &str, host: &str, headers_paths: &[String]) {
657657
let mut bindings = bindgen::Builder::default()
658658
// enable no_std-friendly output by only using core definitions
659659
.use_core()
660+
.bitfield_enum("SDL_RendererFlip")
661+
.newtype_enum("SDL_Keymod")
660662
.default_enum_style(bindgen::EnumVariation::Rust {
661663
non_exhaustive: false,
662664
})

0 commit comments

Comments
 (0)