emulator: Use fmt::format instead of snprintf
This commit is contained in:
parent
1cf032eeb1
commit
7bccfeb8cc
|
@ -202,10 +202,9 @@ HLE::Libs::Graphics::GraphicCtx* getGraphicCtx() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateSDLTitle() {
|
void updateSDLTitle() {
|
||||||
char title[256];
|
const auto title = fmt::format("shadps4 v {} FPS: {}", Common::VERSION, m_current_fps);
|
||||||
sprintf(title, "shadps4 v %s FPS: %f", Common::VERSION, m_current_fps);
|
|
||||||
auto window_ctx = Common::Singleton<Emu::WindowCtx>::Instance();
|
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) {
|
void DrawBuffer(HLE::Libs::Graphics::VideoOutVulkanImage* image) {
|
||||||
|
|
Loading…
Reference in New Issue