ColorEdit, RadioButton, Windows: Using adaptative tesselation for preview circles.

This commit is contained in:
ocornut
2023-03-21 17:38:32 +01:00
parent 9ac94ff001
commit c98bad042d
4 changed files with 16 additions and 11 deletions

View File

@ -3790,6 +3790,7 @@ void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir d
void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col)
{
// FIXME-OPT: This should be baked in font.
draw_list->AddCircleFilled(pos, draw_list->_Data->FontSize * 0.20f, col, 8);
}