mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Merge branch 'master' into docking
# Conflicts: # imgui.cpp
This commit is contained in:
		@@ -695,7 +695,7 @@ void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32
 | 
			
		||||
        PrimReserve(idx_count, vtx_count);
 | 
			
		||||
 | 
			
		||||
        // Temporary buffer
 | 
			
		||||
        ImVec2* temp_normals = (ImVec2*)alloca(points_count * (thick_line ? 5 : 3) * sizeof(ImVec2));
 | 
			
		||||
        ImVec2* temp_normals = (ImVec2*)alloca(points_count * (thick_line ? 5 : 3) * sizeof(ImVec2)); //-V630
 | 
			
		||||
        ImVec2* temp_points = temp_normals + points_count;
 | 
			
		||||
 | 
			
		||||
        for (int i1 = 0; i1 < count; i1++)
 | 
			
		||||
@@ -886,7 +886,7 @@ void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_coun
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Compute normals
 | 
			
		||||
        ImVec2* temp_normals = (ImVec2*)alloca(points_count * sizeof(ImVec2));
 | 
			
		||||
        ImVec2* temp_normals = (ImVec2*)alloca(points_count * sizeof(ImVec2)); //-V630
 | 
			
		||||
        for (int i0 = points_count-1, i1 = 0; i1 < points_count; i0 = i1++)
 | 
			
		||||
        {
 | 
			
		||||
            const ImVec2& p0 = points[i0];
 | 
			
		||||
@@ -2069,6 +2069,7 @@ void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* f
 | 
			
		||||
void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque)
 | 
			
		||||
{
 | 
			
		||||
    stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque;
 | 
			
		||||
    IM_ASSERT(pack_context != NULL);
 | 
			
		||||
 | 
			
		||||
    ImVector<ImFontAtlas::CustomRect>& user_rects = atlas->CustomRects;
 | 
			
		||||
    IM_ASSERT(user_rects.Size >= 1); // We expect at least the default custom rects to be registered, else something went wrong.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user