From 35ce8a6208c8214313037589f693b99221c80ffb Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 12 May 2024 01:43:01 +0200 Subject: [PATCH] outputconfigurationstore: increase the default SDR brightness 200 nits is a bit dark in most situations, so this switches the default SDR brightness to up to 500 nits (depending on what the screen supports) --- src/outputconfigurationstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/outputconfigurationstore.cpp b/src/outputconfigurationstore.cpp index b575917e2c..47bbb5a72c 100644 --- a/src/outputconfigurationstore.cpp +++ b/src/outputconfigurationstore.cpp @@ -431,7 +431,7 @@ std::pair> OutputConfigurationStore::genera .rgbRange = existingData.rgbRange.value_or(kscreenChangeSet.rgbRange.value_or(Output::RgbRange::Automatic)), .vrrPolicy = existingData.vrrPolicy.value_or(kscreenChangeSet.vrrPolicy.value_or(VrrPolicy::Automatic)), .highDynamicRange = existingData.highDynamicRange.value_or(false), - .sdrBrightness = existingData.sdrBrightness.value_or(200), + .sdrBrightness = existingData.sdrBrightness.value_or(std::clamp(output->maxAverageBrightness().value_or(200), 200.0, 500.0)), .wideColorGamut = existingData.wideColorGamut.value_or(false), .autoRotationPolicy = existingData.autoRotation.value_or(Output::AutoRotationPolicy::InTabletMode), .colorProfileSource = existingData.colorProfileSource.value_or(Output::ColorProfileSource::sRGB),