Set QT_ENABLE_HIGHDPI_SCALING to 0 on Qt 6 on Windows (#4767)

This commit is contained in:
nerix
2023-08-27 12:32:09 +02:00
committed by GitHub
parent 15bd72eed1
commit 72f0f49fbf
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -24,6 +24,11 @@ using namespace chatterino;
int main(int argc, char **argv)
{
// TODO: This is a temporary fix (see #4552).
#if defined(Q_OS_WINDOWS) && QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
#endif
QApplication a(argc, argv);
QCoreApplication::setApplicationName("chatterino");