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

[SDL2] Please add support SDL2 Image 2.8.x #64

Closed siabard closed 5 months ago

siabard commented 5 months ago

As far as I know, the latest version of SDL2 Image is 2.8.2, but it seems that it's not properly indicated in bindbc/sdl/config.d.

Although this issue affects only the SDL2 branch, I believe it's worthwhile to add support for SDL2_Image 2.8.x.

diff --git a/source/bindbc/sdl/config.d b/source/bindbc/sdl/config.d
index 5f55505..ef2d721 100644
--- a/source/bindbc/sdl/config.d
+++ b/source/bindbc/sdl/config.d
@@ -107,6 +107,7 @@ enum bindSDLImage = (){
        else version(SDL_Image_204) return true;
        else version(SDL_Image_205) return true;
        else version(SDL_Image_2_6) return true;
+       else version(SDL_Image_2_8) return true;
        else return false;
 }();

Thank you in advance.

ichordev commented 5 months ago

Oh yes, it seems I just forgot to add a reference to it there, as SDL Image 2.8 is already supported by sdl_image.d.