Skip to content

Commit

Permalink
highlightColor does not need to be passed as a param!
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 6, 2023
1 parent 8d6437d commit 9cda25b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hello_imgui/internal/borderless_resizable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ void BorderlessResizableHandler(
DragArea& dragAreaData, // modifiable reference
DragCornerType cornerType,
HelloImGui::BackendApi::WindowPointer window,
HelloImGui::BackendApi::IBackendWindowHelper * backendWindowHelper,
ImU32 highlightColor)
HelloImGui::BackendApi::IBackendWindowHelper * backendWindowHelper)
{
auto highlightColor = ImGui::GetColorU32(ImGuiCol_FrameBgHovered, 0.8f);

ImVec2 mousePos = ImGui::GetIO().MousePos;
// prevent multiple dragging event concurrent
static bool Dragging = false;
Expand Down Expand Up @@ -119,7 +120,6 @@ namespace HelloImGui
{
ImVec2 winPos = ImGui::GetMainViewport()->Pos;
ImVec2 winSize = ImGui::GetMainViewport()->Size;
auto highlightColor = ImGui::GetColorU32(ImGuiCol_FrameBgHovered, 0.8f);
ImVec2 dragPadding = HelloImGui::EmToVec2(1.5f, 1.5f);

// check if main viewport focused
Expand Down Expand Up @@ -184,7 +184,7 @@ namespace HelloImGui
{
auto& dragArea = key_value.second;
auto cornerType = key_value.first;
BorderlessResizableHandler(dragArea, cornerType, window, backendWindowHelper, highlightColor);
BorderlessResizableHandler(dragArea, cornerType, window, backendWindowHelper);
}
}
}
Expand Down

0 comments on commit 9cda25b

Please sign in to comment.