BindBC / bindbc-sdl

Static & dynamic D bindings to SDL and the SDL_* libraries, compatible with BetterC, @nogc, and nothrow.
Boost Software License 1.0
88 stars 23 forks source link

SDL_WINDOWPOS_UNDEFINED_DISPLAY cannot be used at runtime #19

Closed moon-chilled closed 4 years ago

moon-chilled commented 4 years ago

It takes a template argument so it can't be used with compile-time unknown values. Can you change it to a function?

Probably ditto for SDL_WINDOWPOS_ISUNDEFINED, SDL_WINDOWPOS_CENTERED_DISPLAY, and SDL_WINDOWPOS_ISCENTERED, but I haven't had need of those.

mdparker commented 4 years ago

Thanks! I didn't realize that's how they're supposed to be used. I thought I was making an improvement when I changed them from functions in Derelict to enum templates. I'll make the change as soon as I can.

moon-chilled commented 4 years ago

Yep, I have a runtime-configurable option to set which monitor the game window shows up on.

Thanks!

mdparker commented 4 years ago

Fixed in 0.14.0. Sorry for the delay.