mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Fix fmt crash from deprecated percent specifier (#5616)
* Fix fmt crash from deprecated percent specifier * ...clang format
This commit is contained in:
		
							parent
							
								
									4f058c04e8
								
							
						
					
					
						commit
						3fa12d43f5
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -289,9 +289,10 @@ void EmuWindow_SDL2::PollEvents() { | |||
|     const u32 current_time = SDL_GetTicks(); | ||||
|     if (current_time > last_time + 2000) { | ||||
|         const auto results = Core::System::GetInstance().GetAndResetPerfStats(); | ||||
|         const auto title = fmt::format( | ||||
|             "Citra {} | {}-{} | FPS: {:.0f} ({:.0%})", Common::g_build_fullname, | ||||
|             Common::g_scm_branch, Common::g_scm_desc, results.game_fps, results.emulation_speed); | ||||
|         const auto title = | ||||
|             fmt::format("Citra {} | {}-{} | FPS: {:.0f} ({:.0f}%)", Common::g_build_fullname, | ||||
|                         Common::g_scm_branch, Common::g_scm_desc, results.game_fps, | ||||
|                         results.emulation_speed * 100.0f); | ||||
|         SDL_SetWindowTitle(render_window, title.c_str()); | ||||
|         last_time = current_time; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue