BindBC/bindbc-sdl

Error: undefined identifier `SDL_WINDOW_ALLOW_HIGHDPI`

rillki opened this issue · 2 comments

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"],

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

thanks, it works now.