@@ -1302,7 +1302,6 @@ ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
1302
1302
1303
1303
void ImGuiTextFilter::Draw (const char * label, float width)
1304
1304
{
1305
- ImGuiWindow* window = GetCurrentWindow ();
1306
1305
if (width > 0 .0f )
1307
1306
ImGui::PushItemWidth (width);
1308
1307
ImGui::InputText (label, InputBuf, IM_ARRAYSIZE (InputBuf));
@@ -7555,7 +7554,7 @@ void ImFont::BuildLookupTable()
7555
7554
7556
7555
// Create a glyph to handle TAB
7557
7556
// FIXME: Needs proper TAB handling but it needs to be contextualized (can arbitrary say that each string starts at "column 0"
7558
- if (const ImFont::Glyph* space_glyph = FindGlyph ((unsigned short )' ' ))
7557
+ if (FindGlyph ((unsigned short )' ' ))
7559
7558
{
7560
7559
Glyphs.resize (Glyphs.size () + 1 );
7561
7560
ImFont::Glyph& tab_glyph = Glyphs.back ();
@@ -8658,9 +8657,10 @@ void ImGui::ShowTestWindow(bool* opened)
8658
8657
ImGui::ColorEdit4 (" color 2" , col2);
8659
8658
8660
8659
const char * listbox_items[] = { " Apple" , " Banana" , " Cherry" , " Kiwi" , " Mango" , " Orange" , " Pineapple" , " Strawberry" , " Watermelon" };
8661
- static int listbox_item_current = 1 , listbox_item_current2 = 2 ;
8660
+ static int listbox_item_current = 1 ;
8662
8661
ImGui::ListBox (" listbox\n (single select)" , &listbox_item_current, listbox_items, IM_ARRAYSIZE (listbox_items), 4 );
8663
8662
8663
+ // static int listbox_item_current2 = 2;
8664
8664
// ImGui::PushItemWidth(-1);
8665
8665
// ImGui::ListBox("##listbox2", &listbox_item_current2, listbox_items, IM_ARRAYSIZE(listbox_items), 4);
8666
8666
// ImGui::PopItemWidth();
0 commit comments