Skip to content

Commit

Permalink
10bit warning notification
Browse files Browse the repository at this point in the history
  • Loading branch information
UjinT34 committed Jan 17, 2025
1 parent 83ba215 commit 8990aad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/render/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1490,8 +1490,14 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
pMonitor->output->state->setWideColorGamut(needsWCG);

// FIXME do not trust enabled10bit, auto switch to 10bit and back if needed
if (needsWCG && !pMonitor->enabled10bit)
if (needsWCG && !pMonitor->enabled10bit) {
Debug::log(WARN, "Wide color gamut is enabled but the display is not in 10bit mode");
static bool shown = false;
if (!shown) {
g_pHyprNotificationOverlay->addNotification("Wide color gamut is enabled but the display is not in 10bit mode", CHyprColor{}, 15000, ICON_WARNING);
shown = true;
}
}
}

if (pMonitor->ctmUpdated) {
Expand Down

0 comments on commit 8990aad

Please sign in to comment.