From 2fa963e7b12c3d713ca017ac5ae6f2f88e6fac04 Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 22 Jun 2026 18:54:58 +0000 Subject: [PATCH] fix build err --- src/yuzu_cmd/emu_window/emu_window_sdl3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp index 72101fcb47..3fed11496f 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl3.cpp @@ -5,6 +5,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include +#include #ifdef __EMSCRIPTEN__ #include #endif @@ -29,11 +30,12 @@ EmuWindow_SDL3::EmuWindow_SDL3(InputCommon::InputSubsystem* input_subsystem_, Co LOG_CRITICAL(Frontend, "Failed to initialize SDL3: {}, Exiting...", SDL_GetError()); exit(1); } - titlebar_timer = SDL_AddTimer(2000, [](void *userdata, SDL_TimerID, Uint32) { + titlebar_timer = SDL_AddTimer(2000, [](void *userdata, SDL_TimerID, Uint32) -> Uint32 { auto* this_ = (EmuWindow_SDL3*)userdata; auto const results = this_->system.GetAndResetPerfStats(); auto const title = fmt::format("{} | {}-{} | FPS: {:.0f} ({:.0f}%)", Common::g_build_fullname, Common::g_scm_branch, Common::g_scm_desc, results.average_game_fps, results.emulation_speed * 100.0f); SDL_SetWindowTitle(this_->render_window, title.c_str()); + return 2000; }, this); }