mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-14 18:34:32 +00:00
Qt: Apply Wayland workarounds before creating QApplication
This commit is contained in:
@@ -243,16 +243,16 @@ bool QtHost::VeryEarlyProcessStartup()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
ApplyWaylandWorkarounds();
|
||||
#endif
|
||||
|
||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool QtHost::EarlyProcessStartup()
|
||||
{
|
||||
#ifdef __linux__
|
||||
ApplyWaylandWorkarounds();
|
||||
#endif
|
||||
|
||||
// redirect qt errors
|
||||
qInstallMessageHandler(MessageOutputHandler);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user