Skip to content

Commit

Permalink
Merge pull request #68 from AngryLawyer/update-to-latest-sdl2
Browse files Browse the repository at this point in the history
Updated to match SDL2 updates
  • Loading branch information
TyOverby committed Oct 8, 2014
2 parents ab64625 + 8e4b75e commit 6fac008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/window_sdl2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct WindowSDL2 {
impl WindowSDL2 {
/// Creates a new game window for SDL2.
pub fn new(opengl: OpenGL, settings: WindowSettings) -> WindowSDL2 {
sdl2::init(sdl2::InitEverything);
sdl2::init(sdl2::INIT_EVERYTHING);
let (major, minor) = opengl.get_major_minor();
sdl2::video::gl_set_attribute(sdl2::video::GLContextMajorVersion, major);
sdl2::video::gl_set_attribute(sdl2::video::GLContextMinorVersion, minor);
Expand All @@ -52,7 +52,7 @@ impl WindowSDL2 {
sdl2::video::PosCentered,
settings.size[0] as int,
settings.size[1] as int,
sdl2::video::OpenGL | sdl2::video::Resizable
sdl2::video::OPENGL| sdl2::video::RESIZABLE
).unwrap();
if settings.fullscreen {
window.set_fullscreen(sdl2::video::FTTrue);
Expand Down

0 comments on commit 6fac008

Please sign in to comment.