|
|
@@ -98,9 +98,6 @@ bool opt_start_virtualcam = false;
|
|
|
bool opt_minimize_tray = false;
|
|
|
bool opt_allow_opengl = false;
|
|
|
bool opt_always_on_top = false;
|
|
|
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
|
-bool opt_disable_high_dpi_scaling = false;
|
|
|
-#endif
|
|
|
bool opt_disable_updater = false;
|
|
|
bool opt_disable_missing_files_check = false;
|
|
|
string opt_starting_collection;
|
|
|
@@ -1659,10 +1656,6 @@ bool OBSApp::OBSInit()
|
|
|
{
|
|
|
ProfileScope("OBSApp::OBSInit");
|
|
|
|
|
|
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
|
- setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
|
-#endif
|
|
|
-
|
|
|
qRegisterMetaType<VoidFunc>("VoidFunc");
|
|
|
|
|
|
#if !defined(_WIN32) && !defined(__APPLE__)
|
|
|
@@ -2319,13 +2312,7 @@ static int run_program(fstream &logFile, int argc, char *argv[])
|
|
|
|
|
|
ScopeProfiler prof{run_program_init};
|
|
|
|
|
|
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)) && \
|
|
|
- (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
|
|
- QGuiApplication::setAttribute(opt_disable_high_dpi_scaling
|
|
|
- ? Qt::AA_DisableHighDpiScaling
|
|
|
- : Qt::AA_EnableHighDpiScaling);
|
|
|
-#endif
|
|
|
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) && defined(_WIN32)
|
|
|
+#ifdef _WIN32
|
|
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
|
|
|
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
|
|
#endif
|
|
|
@@ -3344,11 +3331,6 @@ int main(int argc, char *argv[])
|
|
|
} else if (arg_is(argv[i], "--steam", nullptr)) {
|
|
|
steam = true;
|
|
|
|
|
|
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
|
- } else if (arg_is(argv[i], "--disable-high-dpi-scaling",
|
|
|
- nullptr)) {
|
|
|
- opt_disable_high_dpi_scaling = true;
|
|
|
-#endif
|
|
|
} else if (arg_is(argv[i], "--help", "-h")) {
|
|
|
std::string help =
|
|
|
"--help, -h: Get list of available commands.\n\n"
|
|
|
@@ -3370,11 +3352,7 @@ int main(int argc, char *argv[])
|
|
|
"--always-on-top: Start in 'always on top' mode.\n\n"
|
|
|
"--unfiltered_log: Make log unfiltered.\n\n"
|
|
|
"--disable-updater: Disable built-in updater (Windows/Mac only)\n\n"
|
|
|
- "--disable-missing-files-check: Disable the missing files dialog which can appear on startup.\n\n"
|
|
|
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
|
- "--disable-high-dpi-scaling: Disable automatic high-DPI scaling\n\n"
|
|
|
-#endif
|
|
|
- ;
|
|
|
+ "--disable-missing-files-check: Disable the missing files dialog which can appear on startup.\n\n";
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
MessageBoxA(NULL, help.c_str(), "Help",
|