Explorar o código

Fixed SDL_GetWindowWMInfo() code example

Sam Lantinga hai 1 ano
pai
achega
e0d0d140b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/README-migration.md

+ 1 - 1
docs/README-migration.md

@@ -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;
     }