diff --git a/Cargo.toml b/Cargo.toml index 6bbccfc1..da74ccfa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "sdl2" description = "SDL2 bindings for Rust" repository = "https://github.com/AngryLawyer/rust-sdl2" documentation = "http://angrylawyer.github.io/rust-sdl2/sdl2/" -version = "0.23.0" +version = "0.23.1" license = "MIT" authors = [ "Tony Aldridge " ] keywords = ["SDL", "windowing", "graphics"] diff --git a/src/sdl2/mouse.rs b/src/sdl2/mouse.rs index 5ec476de..3f61417e 100644 --- a/src/sdl2/mouse.rs +++ b/src/sdl2/mouse.rs @@ -210,7 +210,7 @@ impl MouseUtil { } pub fn is_cursor_showing(&self) -> bool { - unsafe { ll::SDL_ShowCursor(ll::SDL_QUERY) == 1 } + unsafe { ll::SDL_ShowCursor(::sys::SDL_QUERY) == 1 } } pub fn show_cursor(&self, show: bool) { diff --git a/src/sdl2/surface.rs b/src/sdl2/surface.rs index c675b0d2..b3ba8663 100644 --- a/src/sdl2/surface.rs +++ b/src/sdl2/surface.rs @@ -453,7 +453,7 @@ impl SurfaceRef { } pub fn blend_mode(&self) -> BlendMode { - let mut mode: ll::SDL_BlendMode = 0; + let mut mode: ::sys::SDL_BlendMode = 0; let result = unsafe { ll::SDL_GetSurfaceBlendMode(self.raw(), &mut mode) };