mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:50:05 +00:00 
			
		
		
		
	Move ImGuiCheckFonts back to only being called in map_widget (lock makes this safe)
This commit is contained in:
		
							parent
							
								
									9bd5af03f9
								
							
						
					
					
						commit
						c6596b3e7d
					
				
					 2 changed files with 6 additions and 27 deletions
				
			
		|  | @ -1576,6 +1576,9 @@ void MapWidget::paintGL() | |||
|    std::shared_lock imguiFontAtlasLock { | ||||
|       manager::FontManager::Instance().imgui_font_atlas_mutex()}; | ||||
| 
 | ||||
|    // Check ImGui fonts
 | ||||
|    ImGui::SetCurrentContext(p->imGuiContext_); | ||||
|    p->ImGuiCheckFonts(); | ||||
| 
 | ||||
|    // Update pixel ratio
 | ||||
|    p->context_->set_pixel_ratio(pixelRatio()); | ||||
|  | @ -1593,7 +1596,6 @@ void MapWidget::paintGL() | |||
|    // Start ImGui Frame
 | ||||
|    ImGui_ImplQt_NewFrame(this); | ||||
|    ImGui_ImplOpenGL3_NewFrame(); | ||||
|    p->ImGuiCheckFonts(); | ||||
|    ImGui::NewFrame(); | ||||
| 
 | ||||
|    // Set default font
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak