|
|
@ -5476,9 +5476,9 @@ static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& co |
|
|
|
|
|
|
|
struct ImGuiResizeGripDef |
|
|
|
{ |
|
|
|
ImVec2 CornerPos; |
|
|
|
ImVec2 InnerDir; |
|
|
|
int AngleMin12, AngleMax12; |
|
|
|
ImVec2 CornerPos; |
|
|
|
ImVec2 InnerDir; |
|
|
|
int AngleMin12, AngleMax12; |
|
|
|
}; |
|
|
|
|
|
|
|
const ImGuiResizeGripDef resize_grip_def[4] = |
|
|
@ -5890,10 +5890,9 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) |
|
|
|
ImRect rect_to_avoid(window->PosFloat.x - 1, window->PosFloat.y - 1, window->PosFloat.x + 1, window->PosFloat.y + 1); |
|
|
|
window->PosFloat = FindBestWindowPosForPopup(window->PosFloat, window->Size, &window->AutoPosLastDirection, rect_to_avoid); |
|
|
|
} |
|
|
|
|
|
|
|
// Position tooltip (always follows mouse)
|
|
|
|
if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) |
|
|
|
else if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) |
|
|
|
{ |
|
|
|
// Position tooltip (always follow mouse but avoid cursor)
|
|
|
|
float sc = g.Style.MouseCursorScale; |
|
|
|
ImVec2 ref_pos = (!g.NavDisableHighlight && g.NavDisableMouseHover) ? NavCalcPreferredMousePos() : g.IO.MousePos; |
|
|
|
ImRect rect_to_avoid; |
|
|
|