mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Comments, todo list, remove trailing spaces.
This commit is contained in:
		@@ -1611,7 +1611,7 @@ static void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, void*
 | 
			
		||||
            if (op == '-') { *(float*)output = *(const float*)arg1 - *(const float*)arg2; }
 | 
			
		||||
            return;
 | 
			
		||||
        case ImGuiDataType_Double:
 | 
			
		||||
            if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; } 
 | 
			
		||||
            if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; }
 | 
			
		||||
            if (op == '-') { *(double*)output = *(const double*)arg1 - *(const double*)arg2; }
 | 
			
		||||
            return;
 | 
			
		||||
        case ImGuiDataType_COUNT: break;
 | 
			
		||||
@@ -3485,9 +3485,9 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
 | 
			
		||||
        {
 | 
			
		||||
            if (!state->HasSelection())
 | 
			
		||||
            {
 | 
			
		||||
                if (is_wordmove_key_down) 
 | 
			
		||||
                if (is_wordmove_key_down)
 | 
			
		||||
                    state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT|STB_TEXTEDIT_K_SHIFT);
 | 
			
		||||
                else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl) 
 | 
			
		||||
                else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl)
 | 
			
		||||
                    state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART|STB_TEXTEDIT_K_SHIFT);
 | 
			
		||||
            }
 | 
			
		||||
            state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask);
 | 
			
		||||
@@ -3791,9 +3791,9 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
 | 
			
		||||
                    if (searches_result_line_no[1] == -1 && s >= searches_input_ptr[1]) { searches_result_line_no[1] = line_count; if (--searches_remaining <= 0) break; }
 | 
			
		||||
                }
 | 
			
		||||
            line_count++;
 | 
			
		||||
            if (searches_result_line_no[0] == -1) 
 | 
			
		||||
            if (searches_result_line_no[0] == -1)
 | 
			
		||||
                searches_result_line_no[0] = line_count;
 | 
			
		||||
            if (searches_result_line_no[1] == -1) 
 | 
			
		||||
            if (searches_result_line_no[1] == -1)
 | 
			
		||||
                searches_result_line_no[1] = line_count;
 | 
			
		||||
 | 
			
		||||
            // Calculate 2d position by finding the beginning of the line and measuring distance
 | 
			
		||||
@@ -5283,7 +5283,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        item_add = ItemAdd(bb, id);
 | 
			
		||||
    }        
 | 
			
		||||
    }
 | 
			
		||||
    if (!item_add)
 | 
			
		||||
    {
 | 
			
		||||
        if ((flags & ImGuiSelectableFlags_SpanAllColumns) && window->DC.ColumnsSet)
 | 
			
		||||
@@ -5685,7 +5685,7 @@ void ImGuiMenuColumns::Update(int count, float spacing, bool clear)
 | 
			
		||||
    IM_ASSERT(count == IM_ARRAYSIZE(Pos));
 | 
			
		||||
    Width = NextWidth = 0.0f;
 | 
			
		||||
    Spacing = spacing;
 | 
			
		||||
    if (clear) 
 | 
			
		||||
    if (clear)
 | 
			
		||||
        memset(NextWidths, 0, sizeof(NextWidths));
 | 
			
		||||
    for (int i = 0; i < IM_ARRAYSIZE(Pos); i++)
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user