UI: Remove support for toggling Aero

We no longer support Windows 7 and Aero (DWM composition) is
permanently enabled for all newer versions, so this code is obsolete.
This commit is contained in:
Richard Stanway
2022-08-24 02:16:40 +02:00
committed by Jim
parent da3a81a637
commit 7e0ade0df0
6 changed files with 0 additions and 102 deletions

View File

@@ -1893,15 +1893,6 @@ void OBSBasic::OBSInit()
Qt::QueuedConnection,
Q_ARG(bool, previewEnabled));
#ifdef _WIN32
uint32_t winVer = GetWindowsVersion();
if (winVer > 0 && winVer < 0x602) {
bool disableAero =
config_get_bool(basicConfig, "Video", "DisableAero");
SetAeroEnabled(!disableAero);
}
#endif
RefreshSceneCollections();
RefreshProfiles();
disableSaving--;
@@ -2717,17 +2708,6 @@ OBSBasic::~OBSBasic()
ui->lockDocks->isChecked());
config_save_safe(App()->GlobalConfig(), "tmp", nullptr);
#ifdef _WIN32
uint32_t winVer = GetWindowsVersion();
if (winVer > 0 && winVer < 0x602) {
bool disableAero =
config_get_bool(basicConfig, "Video", "DisableAero");
if (disableAero) {
SetAeroEnabled(true);
}
}
#endif
#ifdef BROWSER_AVAILABLE
DestroyPanelCookieManager();
delete cef;