diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 87f2b16fb..a3b8c6560 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -5061,13 +5061,13 @@ void OBSBasic::AddProjectorMenuMonitors(QMenu *parent, QObject *target, QRect screenGeometry = screen->geometry(); qreal ratio = screen->devicePixelRatio(); QString name = ""; -#ifdef _WIN32 +#if defined(_WIN32) && QT_VERSION < QT_VERSION_CHECK(6, 4, 0) QTextStream fullname(&name); fullname << GetMonitorName(screen->name()); fullname << " ("; fullname << (i + 1); fullname << ")"; -#elif defined(__APPLE__) +#elif defined(__APPLE__) || defined(_WIN32) name = screen->name(); #else name = screen->model().simplified();