mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-19 14:19:57 +01:00
BugFix - correcting previous change
This commit is contained in:
@@ -274,7 +274,6 @@ bool ImGuiToolkit::IconButton(int i, int j, const char *tooltip, const char* sho
|
|||||||
float h = ImGui::GetFrameHeight();
|
float h = ImGui::GetFrameHeight();
|
||||||
ImVec2 size = ImGui::CalcItemSize(ImVec2(h, h), 0.0f, 0.0f);
|
ImVec2 size = ImGui::CalcItemSize(ImVec2(h, h), 0.0f, 0.0f);
|
||||||
ImVec2 draw_pos = window->DC.CursorPos;
|
ImVec2 draw_pos = window->DC.CursorPos;
|
||||||
draw_pos.y += window->DC.CurrLineTextBaseOffset - g.Style.FramePadding.y;
|
|
||||||
const ImRect bb(draw_pos, draw_pos + size);
|
const ImRect bb(draw_pos, draw_pos + size);
|
||||||
ImGui::ItemSize(size, g.Style.FramePadding.y);
|
ImGui::ItemSize(size, g.Style.FramePadding.y);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user