diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-11-13 18:17:39 +0100 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-11-18 13:09:01 +0100 |
commit | 182476c96a6c75e90a90cbb52048bf754fdd786d (patch) | |
tree | c6ce8fc723e9c702a3bc3bf3c1a6788b6faee486 /src/citra_qt | |
parent | EmuWindow: Add documentation. (diff) | |
download | yuzu-182476c96a6c75e90a90cbb52048bf754fdd786d.tar yuzu-182476c96a6c75e90a90cbb52048bf754fdd786d.tar.gz yuzu-182476c96a6c75e90a90cbb52048bf754fdd786d.tar.bz2 yuzu-182476c96a6c75e90a90cbb52048bf754fdd786d.tar.lz yuzu-182476c96a6c75e90a90cbb52048bf754fdd786d.tar.xz yuzu-182476c96a6c75e90a90cbb52048bf754fdd786d.tar.zst yuzu-182476c96a6c75e90a90cbb52048bf754fdd786d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/bootmanager.cpp | 11 | ||||
-rw-r--r-- | src/citra_qt/main.cpp | 3 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 8c12cb228..ace48a237 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -111,6 +111,9 @@ EmuThread& GRenderWindow::GetEmuThread() GRenderWindow::GRenderWindow(QWidget* parent) : QWidget(parent), emu_thread(this), keyboard_id(0) { + std::string window_title = Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); + setWindowTitle(QString::fromStdString(window_title)); + keyboard_id = KeyMap::NewDeviceId(); ReloadSetKeymaps(); @@ -182,14 +185,6 @@ void GRenderWindow::DoneCurrent() } void GRenderWindow::PollEvents() { - // TODO(ShizZy): Does this belong here? This is a reasonable place to update the window title - // from the main thread, but this should probably be in an event handler... - /* - static char title[128]; - sprintf(title, "%s (FPS: %02.02f)", window_title_.c_str(), - video_core::g_renderer->current_fps()); - setWindowTitle(title); - */ } // On Qt 5.0+, this correctly gets the size of the framebuffer (pixels). diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 9a4e36adf..d5554d917 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -117,7 +117,8 @@ GMainWindow::GMainWindow() connect(GetHotkey("Main Window", "Load File", this), SIGNAL(activated()), this, SLOT(OnMenuLoadFile())); connect(GetHotkey("Main Window", "Start Emulation", this), SIGNAL(activated()), this, SLOT(OnStartGame())); - setWindowTitle(render_window->GetWindowTitle().c_str()); + std::string window_title = Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); + setWindowTitle(window_title.c_str()); show(); |