mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-07 15:46:01 +00:00
emulator: Use fmt::format instead of snprintf
This commit is contained in:
parent
7cdcfb6f98
commit
3359f9289d
|
@ -202,10 +202,9 @@ HLE::Libs::Graphics::GraphicCtx* getGraphicCtx() {
|
|||
}
|
||||
|
||||
void updateSDLTitle() {
|
||||
char title[256];
|
||||
sprintf(title, "shadps4 v %s FPS: %f", Common::VERSION, m_current_fps);
|
||||
const auto title = fmt::format("shadps4 v {} FPS: {}", Common::VERSION, m_current_fps);
|
||||
auto window_ctx = Common::Singleton<Emu::WindowCtx>::Instance();
|
||||
SDL_SetWindowTitle(window_ctx->m_window, title);
|
||||
SDL_SetWindowTitle(window_ctx->m_window, title.c_str());
|
||||
}
|
||||
|
||||
void DrawBuffer(HLE::Libs::Graphics::VideoOutVulkanImage* image) {
|
||||
|
|
Loading…
Reference in a new issue