mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-04 01:34:32 +00:00 
			
		
		
		
	Unused variables fixes.
This commit is contained in:
		@@ -1302,7 +1302,6 @@ ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
 | 
			
		||||
 | 
			
		||||
void ImGuiTextFilter::Draw(const char* label, float width)
 | 
			
		||||
{
 | 
			
		||||
    ImGuiWindow* window = GetCurrentWindow();
 | 
			
		||||
    if (width > 0.0f)
 | 
			
		||||
        ImGui::PushItemWidth(width);
 | 
			
		||||
    ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf));
 | 
			
		||||
@@ -7555,7 +7554,7 @@ void ImFont::BuildLookupTable()
 | 
			
		||||
 | 
			
		||||
    // Create a glyph to handle TAB
 | 
			
		||||
    // FIXME: Needs proper TAB handling but it needs to be contextualized (can arbitrary say that each string starts at "column 0"
 | 
			
		||||
    if (const ImFont::Glyph* space_glyph = FindGlyph((unsigned short)' '))
 | 
			
		||||
    if (FindGlyph((unsigned short)' '))
 | 
			
		||||
    {
 | 
			
		||||
        Glyphs.resize(Glyphs.size() + 1);
 | 
			
		||||
        ImFont::Glyph& tab_glyph = Glyphs.back();
 | 
			
		||||
@@ -8658,9 +8657,10 @@ void ImGui::ShowTestWindow(bool* opened)
 | 
			
		||||
        ImGui::ColorEdit4("color 2", col2);
 | 
			
		||||
 | 
			
		||||
        const char* listbox_items[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pineapple", "Strawberry", "Watermelon" };
 | 
			
		||||
        static int listbox_item_current = 1, listbox_item_current2 = 2;
 | 
			
		||||
        static int listbox_item_current = 1;
 | 
			
		||||
        ImGui::ListBox("listbox\n(single select)", &listbox_item_current, listbox_items, IM_ARRAYSIZE(listbox_items), 4);
 | 
			
		||||
 | 
			
		||||
        //static int listbox_item_current2 = 2;
 | 
			
		||||
        //ImGui::PushItemWidth(-1);
 | 
			
		||||
        //ImGui::ListBox("##listbox2", &listbox_item_current2, listbox_items, IM_ARRAYSIZE(listbox_items), 4);
 | 
			
		||||
        //ImGui::PopItemWidth();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user