-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
BASE: Show SDL1.2/SDL2 in the About dialog #4788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
SDL_VERSION_ATLEAST can't be used at this point, but USE_SDL2 is now available through the preprocessor.
|
Nice idea, especially since we'll see the SDL2->SDL3 migration happening in the foreseeable future. |
|
These changes look pretty good to me, fairly clear. If @sev- is happy as well, then I would suggest merging. |
|
Shouldn't the Otherwise the change looks good. |
|
Thank you, very useful |
And I added it in 43d7792. Please check that it is correct |
|
I'm too late to the party...but would it makes sense to also add the used SDL version to the version information when one triggers --version (right now all the compiled in dependancies are already displayed? Like so: That way bug reports would also hold the information without the reporter having to add it manually (if he/she chooses to use the --version switch, that is) |
setup.defines.push_back("USE_SDL2");and so the resulting
Yes, I only mentioned the About dialog, but |
|
Uh, this is interesting, I didn't even notice. It looks like that at least on MSYS2/mingw64 and MXE, this change doesn't work properly, I see no SDL related output in the About dialog or in the command line output. However, if I apply #4793, I do get the proper version reported in the command line, so USE_SDL2 and SDL_BACKEND seem to be correctly reported. Sadly I have no idea why this doesn't work :/ |
Ah, thanks for spotting that, it looks like there's a strange ifdef maze in that file. I'm looking into it. EDIT: Fixed in |
|
Yep, fix confirmed :-) |
This tweaks the build system a bit, so that the About dialog will now show whether SDL1.2 or SDL2 (or later) is used.
The idea is to have a quick way of figuring out when an official port still uses SDL1.2, just after starting it. Knowing it from memory or from the build logs is not always convenient.