Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
nishinji committed Sep 6, 2024
1 parent 152c713 commit 15eb6ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vita3k/gui/src/imgui_impl_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ IMGUI_API ImGui_State *ImGui_ImplSdl_Init(renderer::State *renderer, SDL_Window
// Our mouse update function expect PlatformHandle to be filled for the main viewport
ImGuiViewport *main_viewport = ImGui::GetMainViewport();
main_viewport->PlatformHandle = (void *)window;
#ifdef WIN32
main_viewport->PlatformHandleRaw = = (void *)ofGetWin32Window();
#else
main_viewport->PlatformHandleRaw = nullptr;
#endif
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
if (SDL_GetWindowWMInfo(window, &info)) {
Expand Down

0 comments on commit 15eb6ba

Please sign in to comment.