BindBC / bindbc-sdl

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

Error: undefined identifier `SDL_WINDOW_ALLOW_HIGHDPI` #43

Closed rillki closed 2 years ago

rillki commented 2 years ago

I'm dynamically loading SDL2. I see that SDL_WINDOW_ALLOW_HIGHDPI is defined in sdl/bind/sdlvideo.d, but still get this error. SDL_GetVersion returns SDL_version(2, 24, 0).

dub.json:

"dependencies": {
        "bindbc-sdl": "~>1.2.1"
    },
"versions": ["SDL2020", "SDL_Image", "SDL_TTF", "SDL_Mixer"],
mdparker commented 2 years ago

You've got the wrong version defined for SDL: "SDL2020" should be "SDL_2020".

rillki commented 2 years ago

thanks, it works now.