Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
thexai committed Jul 11, 2020
1 parent 81ca1ba commit f9896cb
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions xbmc/platform/win32/WIN32Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1497,17 +1497,12 @@ HDR_STATUS CWIN32Util::GetWindowsHDRStatus()
if (CServiceBroker::IsServiceManagerUp())
CLog::LogF(LOGDEBUG, "Display is not HDR capable or cannot be detected");
}
else if (advancedColorSupported && !advancedColorEnabled)
{
status = HDR_STATUS::HDR_OFF;
if (CServiceBroker::IsServiceManagerUp())
CLog::LogF(LOGDEBUG, "Display HDR capable and current HDR status is OFF");
}
else if (advancedColorSupported && advancedColorEnabled)
else
{
status = HDR_STATUS::HDR_ON;
status = (advancedColorEnabled) ? HDR_STATUS::HDR_ON : HDR_STATUS::HDR_OFF;
if (CServiceBroker::IsServiceManagerUp())
CLog::LogF(LOGDEBUG, "Display HDR capable and current HDR status is ON");
CLog::LogF(LOGDEBUG, "Display HDR capable and current HDR status is {}",
(advancedColorEnabled) ? "ON" : "OFF");
}

return status;
Expand Down

0 comments on commit f9896cb

Please sign in to comment.