-
Notifications
You must be signed in to change notification settings - Fork 21
Update sdlhints.inc to 2.0.22 #52
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
Update sdlhints.inc to 2.0.22 #52
Conversation
|
Thanks, great work! Could you update the version tag in sdl2.pas? Then this is ready for merge. :-) As a sidenote about the deprecate-marking: I wonder if Delphi isn't supporting the deprecated syntax, too. |
|
Does Embarcadero have some trial versions of Delphi? If |
|
I made further research on this. I think it is safe to remove the conditional. See https://stackoverflow.com/questions/27296111/is-possible-to-mark-an-entire-const-block-as-deprecated for reference. There are variables shown to be deprecated in an identical way for Delphi. |
Should be Delphi compatible
|
Thanks again! I made two minor changes before merge: I updated the Best regards |
This patch updates
sdlhints.incto matchSDL_hints.h, as of version 2.0.22, with one minor difference: in SDL 2.0.10,SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCHhas been removed completely. Instead of removing it, this patch marks it as deprecated.An additional bugfix was made to the definition of
TSDL_HintCallback- for SDL to be able to pass arguments to the function correctly, it should use the C calling convention.