ysbaddaden / sdl.cr

SDL2 bindings for Crystal
102 stars 32 forks source link

Fix SDL::Window#fullscreen #19

Closed wooster0 closed 6 years ago

wooster0 commented 6 years ago

Right now it gives you this when you use it:

Error in wool.cr:46: instantiating 'Wool::Window:Module#fullscreen(Bool)'

  Wool::Window.fullscreen true
               ^~~~~~~~~~

in window.cr:29: instantiating 'SDL::Window#fullscreen=(Bool)'

   window.fullscreen = true
          ^~~~~~~~~~

in lib/sdl/src/window.cr:86: undefined constant LibSDL::WindowFlags::WINDOW

      self.fullscreen = value ? LibSDL::WindowFlags::FULLSCREEN : LibSDL::WindowFlags::WINDOW
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ysbaddaden commented 6 years ago

Thanks!