mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Demo tweaks + general removal of the word dummy were possible with no issues (kept the API call).
This commit is contained in:
		| @@ -2307,8 +2307,8 @@ bool    ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) | ||||
|             const int codepoint = src_tmp.GlyphsList[glyph_i]; | ||||
|             const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; | ||||
|             stbtt_aligned_quad q; | ||||
|             float dummy_x = 0.0f, dummy_y = 0.0f; | ||||
|             stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &dummy_x, &dummy_y, &q, 0); | ||||
|             float unused_x = 0.0f, unused_y = 0.0f; | ||||
|             stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); | ||||
|             dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user