Fixed SDL_GetWindowWMInfo() code example
parent
f61c0f3dc1
commit
e0d0d140b2
|
@ -1175,7 +1175,7 @@ The information previously available in SDL_GetWindowWMInfo() is now available a
|
|||
```c
|
||||
HWND hwnd = NULL;
|
||||
SDL_SysWMinfo info;
|
||||
SDL_VERSION(&info);
|
||||
SDL_VERSION(&info.version);
|
||||
if (SDL_GetWindowWMInfo(window, &info) && info.subsystem == SDL_SYSWM_WINDOWS) {
|
||||
hwnd = info.info.win.window;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue