fix a lot of warnings about unused variables, or maybe uninitialized variables

This commit is contained in:
kistlin
2022-01-16 08:28:57 +01:00
parent 1185e4e114
commit 174158233b
17 changed files with 11 additions and 41 deletions

View File

@ -22,7 +22,6 @@ namespace ImGui {
ImGuiWindow* window = GetCurrentWindow();
ImGuiStyle& style = GetStyle();
float pad = style.FramePadding.y;
ImVec2 min = window->DC.CursorPos;
// Calculate scale
@ -31,7 +30,6 @@ namespace ImGui {
ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), height);
ImRect bb(min, ImVec2(min.x + size.x, min.y + size.y));
float lineHeight = size.y;
ItemSize(size, style.FramePadding.y);
if (!ItemAdd(bb, 0)) {