mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-25 00:56:35 +00:00
Examples: SDL: Fixed unused variable warning on non-Windows platforms (#626)
This commit is contained in:
parent
79ad22e1f2
commit
c1da3e354e
@ -330,6 +330,8 @@ bool ImGui_ImplSdlGL3_Init(SDL_Window* window)
|
|||||||
SDL_VERSION(&wmInfo.version);
|
SDL_VERSION(&wmInfo.version);
|
||||||
SDL_GetWindowWMInfo(window, &wmInfo);
|
SDL_GetWindowWMInfo(window, &wmInfo);
|
||||||
io.ImeWindowHandle = wmInfo.info.win.window;
|
io.ImeWindowHandle = wmInfo.info.win.window;
|
||||||
|
#else
|
||||||
|
(void)window;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -218,6 +218,8 @@ bool ImGui_ImplSdl_Init(SDL_Window* window)
|
|||||||
SDL_VERSION(&wmInfo.version);
|
SDL_VERSION(&wmInfo.version);
|
||||||
SDL_GetWindowWMInfo(window, &wmInfo);
|
SDL_GetWindowWMInfo(window, &wmInfo);
|
||||||
io.ImeWindowHandle = wmInfo.info.win.window;
|
io.ImeWindowHandle = wmInfo.info.win.window;
|
||||||
|
#else
|
||||||
|
(void)window;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user