Skip to content

Commit 9c2f600

Browse files
committed
Backends: SDL3: fixed typo leading to PlatformHandleRaw not being set leading to SHOWNA path not working for multi-viewports.
1 parent df3a743 commit 9c2f600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/imgui_impl_sdl3.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static void ImGui_ImplSDL3_SetupPlatformHandles(ImGuiViewport* viewport, SDL_Win
386386
{
387387
viewport->PlatformHandle = window;
388388
viewport->PlatformHandleRaw = nullptr;
389-
#if defined(__WIN32__) && !defined(__WINRT__)
389+
#if defined(_WIN32) && !defined(__WINRT__)
390390
viewport->PlatformHandleRaw = (HWND)SDL_GetPointerProperty(SDL_GetWindowProperties(window), SDL_PROP_WINDOW_WIN32_HWND_POINTER, nullptr);
391391
#elif defined(__APPLE__) && defined(SDL_VIDEO_DRIVER_COCOA)
392392
viewport->PlatformHandleRaw = SDL_GetPointerProperty(SDL_GetWindowProperties(window), SDL_PROP_WINDOW_COCOA_WINDOW_POINTER, nullptr);

0 commit comments

Comments
 (0)