mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
libobs: Remove Aero logging
This commit is contained in:
@@ -164,36 +164,6 @@ static void log_admin_status(void)
|
||||
success ? "true" : "false");
|
||||
}
|
||||
|
||||
typedef HRESULT(WINAPI *dwm_is_composition_enabled_t)(BOOL *);
|
||||
|
||||
static void log_aero(void)
|
||||
{
|
||||
dwm_is_composition_enabled_t composition_enabled = NULL;
|
||||
|
||||
const char *aeroMessage =
|
||||
win_ver >= 0x602
|
||||
? " (Aero is always on for windows 8 and above)"
|
||||
: "";
|
||||
|
||||
HMODULE dwm = LoadLibraryW(L"dwmapi");
|
||||
BOOL bComposition = true;
|
||||
|
||||
if (!dwm) {
|
||||
return;
|
||||
}
|
||||
|
||||
composition_enabled = (dwm_is_composition_enabled_t)GetProcAddress(
|
||||
dwm, "DwmIsCompositionEnabled");
|
||||
if (!composition_enabled) {
|
||||
FreeLibrary(dwm);
|
||||
return;
|
||||
}
|
||||
|
||||
composition_enabled(&bComposition);
|
||||
blog(LOG_INFO, "Aero is %s%s", bComposition ? "Enabled" : "Disabled",
|
||||
aeroMessage);
|
||||
}
|
||||
|
||||
#define WIN10_GAME_BAR_REG_KEY \
|
||||
L"Software\\Microsoft\\Windows\\CurrentVersion\\GameDVR"
|
||||
#define WIN10_GAME_DVR_POLICY_REG_KEY \
|
||||
@@ -408,7 +378,6 @@ void log_system_info(void)
|
||||
log_available_memory();
|
||||
log_windows_version();
|
||||
log_admin_status();
|
||||
log_aero();
|
||||
log_gaming_features();
|
||||
log_security_products();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user