Skip to content

Commit

Permalink
Fixed bugs that prevented build on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmillermicrostrain committed Nov 6, 2023
1 parent 70179e0 commit b1fa8c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backends/imgui_impl_sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ static void ImGui_ImplSDL2_CreateWindow(ImGuiViewport* viewport)
SDL_Window *parent_window = parent_viewport_data->Window;

#ifdef __linux__
parent_ptr = sdl_mouse_window;
parent_ptr = parent_window;
#else
if (parent_window != nullptr)
{
Expand Down Expand Up @@ -1049,8 +1049,8 @@ static void ImGui_ImplSDL2_SetWindowPos(ImGuiViewport* viewport, ImVec2 pos)
#elif defined __linux__
if(vd->ChildWindow != nullptr)
{
pos_x = viewport->Pos.x - main_viewport->Pos.x;
pos_y = viewport->Pos.y - main_viewport->Pos.y;
pos_x = viewport->Pos.x - parent_viewport->Pos.x;
pos_y = viewport->Pos.y - parent_viewport->Pos.y;

if(vd->ChildWindow)
{
Expand Down

0 comments on commit b1fa8c5

Please sign in to comment.