mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Fix references to duplicated sys types
This commit is contained in:
+1
-1
@@ -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 <tony@angry-lawyer.com>" ]
|
||||
keywords = ["SDL", "windowing", "graphics"]
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user