mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
make SDLVersion fields publib; fix build dir error in .travis.yml
This commit is contained in:
@@ -3,6 +3,7 @@ before_install:
|
||||
- sudo apt-get update
|
||||
install:
|
||||
- sudo apt-get install rust-nightly
|
||||
- cd ..
|
||||
- time wget -q http://www.libsdl.org/release/SDL2-2.0.3.tar.gz
|
||||
- time wget -q http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.12.tar.gz
|
||||
- time tar xf SDL2-*.tar.gz
|
||||
|
||||
+3
-3
@@ -80,9 +80,9 @@ fn color_to_c_color(color: Color) -> SDL_Color {
|
||||
/// FIXME: this type should be in rust-sdl2 package
|
||||
#[deriving(Eq, Clone)]
|
||||
pub struct SDLVersion {
|
||||
major: int,
|
||||
minor: int,
|
||||
patch: int,
|
||||
pub major: int,
|
||||
pub minor: int,
|
||||
pub patch: int,
|
||||
}
|
||||
|
||||
impl fmt::Show for SDLVersion {
|
||||
|
||||
Reference in New Issue
Block a user