@@ -863,13 +863,13 @@ bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos)
863863 // Render
864864 ImU32 bg_col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered);
865865 if (hovered)
866- window->DrawList->AddRectFilled(bb.Min, bb.Max, bg_col);
867- RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact);
866+ window->DrawList->AddRectFilled(bb.Min, bb.Max, bg_col, g.Style.FrameRounding );
867+ // RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact);
868868 ImU32 cross_col = GetColorU32(ImGuiCol_Text);
869869 ImVec2 cross_center = bb.GetCenter() - ImVec2(0.5f, 0.5f);
870870 float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f;
871- window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, +cross_extent), cross_center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f );
872- window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, -cross_extent), cross_center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f );
871+ window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, +cross_extent), cross_center + ImVec2(-cross_extent, -cross_extent), cross_col, g.FontSize * 0.1 );
872+ window->DrawList->AddLine(cross_center + ImVec2(+cross_extent, -cross_extent), cross_center + ImVec2(-cross_extent, +cross_extent), cross_col, g.FontSize * 0.1 );
873873
874874 return pressed;
875875}
0 commit comments