mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	ImDrawList, Font: Fixed bug introduced in 531c11d5c7 (#1519)
				
					
				
			This commit is contained in:
		| @@ -1922,7 +1922,7 @@ static void SetCurrentWindow(ImGuiWindow* window) | |||||||
|     ImGuiContext& g = *GImGui; |     ImGuiContext& g = *GImGui; | ||||||
|     g.CurrentWindow = window; |     g.CurrentWindow = window; | ||||||
|     if (window) |     if (window) | ||||||
|         g.FontSize = window->CalcFontSize(); |         g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); | ||||||
| } | } | ||||||
|  |  | ||||||
| void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) | void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) | ||||||
| @@ -5843,7 +5843,7 @@ void ImGui::SetWindowFontScale(float scale) | |||||||
|     ImGuiContext& g = *GImGui; |     ImGuiContext& g = *GImGui; | ||||||
|     ImGuiWindow* window = GetCurrentWindow(); |     ImGuiWindow* window = GetCurrentWindow(); | ||||||
|     window->FontWindowScale = scale; |     window->FontWindowScale = scale; | ||||||
|     g.FontSize = window->CalcFontSize(); |     g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); | ||||||
| } | } | ||||||
|  |  | ||||||
| // User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. | // User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user