make SDLVersion fields publib; fix build dir error in .travis.yml

This commit is contained in:
Andelf
2014-04-03 11:26:08 +08:00
parent b4f5ad232d
commit 097f0ba0db
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -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
View File
@@ -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 {