Vladar4 / sdl2_nim

Wrapper of the SDL 2 library for the Nim language.
Other
147 stars 24 forks source link

made flags integers instead of enums for 'or' operator #8

Closed krux02 closed 6 years ago

krux02 commented 6 years ago

Flags are supposed to be composable with the or operator. That does not work when the flags are of type enum. Also the function where the flags are supposed to be used expect an argument of type cint. Therefore the flags are now simple integer constants.

Vladar4 commented 6 years ago

Thanks!