X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=6660e1206556b6cc19b2112eb2dfba0eec0a9604;hb=64d673ee2b6655f0ade45a3329ee08e32522b3c4;hp=66f3cf724129c0da00f63558e303a3a8228fadcd;hpb=0f38cfdd905d52190ca959b75c849459cbc99144;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 66f3cf72..6660e120 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1110,7 +1110,7 @@ static int getGlobalGameStatus(int status) status); } -static Bitmap *getBitmapFromGraphicOrDefault(int graphic, int default_graphic) +Bitmap *getBitmapFromGraphicOrDefault(int graphic, int default_graphic) { if (graphic == IMG_UNDEFINED) return NULL; @@ -9964,7 +9964,13 @@ void ChangeViewportPropertiesIfNeeded(void) void OpenURL(char *url) { +#if SDL_VERSION_ATLEAST(2,0,14) SDL_OpenURL(url); +#else + Warn("SDL_OpenURL(\"%s\") not supported by SDL %d.%d.%d!", + url, SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL); + Warn("Please upgrade to at least SDL 2.0.14 for URL support!"); +#endif } void OpenURLFromHash(SetupFileHash *hash, int hash_key)