Skip to content
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

SDL2/SDL_GetWindowWMInfo() always returns 0 #128

Closed
javierdlr opened this issue Sep 14, 2024 · 2 comments
Closed

SDL2/SDL_GetWindowWMInfo() always returns 0 #128

javierdlr opened this issue Sep 14, 2024 · 2 comments

Comments

@javierdlr
Copy link

SDL2syswm_c.txt

compiling above example on AmigaOS4 I always get 0, under macOS returns 1.

Is such funcion implemented? IIRC in SDL1 there is SDL_GetWMInfo() and works fine.

@capehill
Copy link

https://wiki.libsdl.org/SDL2/SDL_GetWindowWMInfo

It seems that version information was not set correctly.

SDL_GetError() usually gives some extra information and there is also a serial debug version of the library.

@javierdlr
Copy link
Author

adding SDL_VERSION(&wmInfo.version) make code working. THXaLOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants