mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
ColorButton: Undo ce203f99f5
This commit is contained in:
parent
2e37db9002
commit
c1c2b2400a
1 changed files with 1 additions and 1 deletions
|
|
@ -9088,7 +9088,7 @@ bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFl
|
|||
if (size.y == 0.0f)
|
||||
size.y = default_size;
|
||||
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
|
||||
ItemSize(bb, ImMin((size.y - g.FontSize) * 0.5f, style.FramePadding.y));
|
||||
ItemSize(bb);//, ImMin((size.y - g.FontSize) * 0.5f, style.FramePadding.y));
|
||||
if (!ItemAdd(bb, &id))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue