Fix for latest
diff --git a/imgui.cpp b/imgui.cpp
index 5b9c5f7..1f7415a 100644
--- a/imgui.cpp
+++ b/imgui.cpp
@@ -6418,8 +6418,8 @@
#ifdef WIN98 // windows style title bar
- close_button_pos += ImVec2(0.0f, 2.0f);
- collapse_button_pos += ImVec2(0.0f, 2.0f);
+ close_button_pos += ImVec2(-2.0f, -2.0f);
+ collapse_button_pos += ImVec2(-2.0f, -2.0f);
ImU32 col_left = IM_COL32(128,128,128,255);
ImU32 col_right = IM_COL32(181,181,181,255);
diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp
index a8e479d..ce20aa0 100644
--- a/imgui_widgets.cpp
+++ b/imgui_widgets.cpp
@@ -6640,6 +6640,10 @@
float button_size = g.FontSize;
float button_x = ImMax(g.LastItemData.Rect.Min.x, g.LastItemData.Rect.Max.x - g.Style.FramePadding.x - button_size);
float button_y = g.LastItemData.Rect.Min.y + g.Style.FramePadding.y;
+#ifdef WIN98
+ button_x -= 4;
+ button_y -= 1;
+#endif
ImGuiID close_button_id = GetIDWithSeed("#CLOSE", NULL, id);
if (CloseButton(close_button_id, ImVec2(button_x, button_y)))
*p_visible = false;