mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-04 09:44:29 +00:00 
			
		
		
		
	Shallow tweaks
This commit is contained in:
		@@ -2832,8 +2832,9 @@ static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char**
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line)
 | 
					static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    ImFont* font = GImGui->Font;
 | 
					    ImGuiContext& g = *GImGui;
 | 
				
			||||||
    const float line_height = GImGui->FontSize;
 | 
					    ImFont* font = g.Font;
 | 
				
			||||||
 | 
					    const float line_height = g.FontSize;
 | 
				
			||||||
    const float scale = line_height / font->FontSize;
 | 
					    const float scale = line_height / font->FontSize;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ImVec2 text_size = ImVec2(0,0);
 | 
					    ImVec2 text_size = ImVec2(0,0);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user