mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-19 08:03:30 +00:00
yuzu/bootmanager: Specify string conversions explicitly
Allows the bootmanager code to compile with implicit string conversions disabled.
This commit is contained in:
parent
317f1263fb
commit
fd34732e26
1 changed files with 4 additions and 2 deletions
|
@ -188,7 +188,9 @@ private:
|
||||||
GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread)
|
GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread)
|
||||||
: QWidget(parent), emu_thread(emu_thread) {
|
: QWidget(parent), emu_thread(emu_thread) {
|
||||||
setWindowTitle(QStringLiteral("yuzu %1 | %2-%3")
|
setWindowTitle(QStringLiteral("yuzu %1 | %2-%3")
|
||||||
.arg(Common::g_build_name, Common::g_scm_branch, Common::g_scm_desc));
|
.arg(QString::fromUtf8(Common::g_build_name),
|
||||||
|
QString::fromUtf8(Common::g_scm_branch),
|
||||||
|
QString::fromUtf8(Common::g_scm_desc)));
|
||||||
setAttribute(Qt::WA_AcceptTouchEvents);
|
setAttribute(Qt::WA_AcceptTouchEvents);
|
||||||
|
|
||||||
InputCommon::Init();
|
InputCommon::Init();
|
||||||
|
@ -217,7 +219,7 @@ void GRenderWindow::SwapBuffers() {
|
||||||
// However:
|
// However:
|
||||||
// - The Qt debug runtime prints a bogus warning on the console if `makeCurrent` wasn't called
|
// - The Qt debug runtime prints a bogus warning on the console if `makeCurrent` wasn't called
|
||||||
// since the last time `swapBuffers` was executed;
|
// since the last time `swapBuffers` was executed;
|
||||||
// - On macOS, if `makeCurrent` isn't called explicitely, resizing the buffer breaks.
|
// - On macOS, if `makeCurrent` isn't called explicitly, resizing the buffer breaks.
|
||||||
context->makeCurrent(child);
|
context->makeCurrent(child);
|
||||||
|
|
||||||
context->swapBuffers(child);
|
context->swapBuffers(child);
|
||||||
|
|
Loading…
Reference in a new issue