haskell-game / sdl2

Haskell bindings to the SDL2 library
Other
363 stars 87 forks source link

fix WindowMode fromNumber for SDL_WINDOW_FULLSCREEN_DESKTOP #216

Closed nxths closed 4 years ago

nxths commented 4 years ago

The ordering and bitmask check changes are both needed given how SDL_WINDOW_FULLSCREEN_DESKTOP is defined https://github.com/emscripten-ports/SDL2/blob/master/include/SDL_video.h#L111.