Skip to content

Commit da83253

Browse files
ITotalJusticeocornut
authored andcommitted
Backends: SDL: fix build on WinRT (#6019, #5974)
1 parent 52c61de commit da83253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/imgui_impl_sdl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static bool ImGui_ImplSDL2_Init(SDL_Window* window, SDL_Renderer* renderer)
359359
bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO);
360360

361361
// Set platform dependent data in viewport
362-
#ifdef _WIN32
362+
#if defined(SDL_VIDEO_DRIVER_WINDOWS)
363363
SDL_SysWMinfo info;
364364
SDL_VERSION(&info.version);
365365
if (SDL_GetWindowWMInfo(window, &info))

0 commit comments

Comments
 (0)