mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-02 05:12:02 +00:00
[client] hdr: refactor name to clean up log output
This commit is contained in:
@@ -169,7 +169,7 @@ struct AppState
|
||||
|
||||
int spiceHotX, spiceHotY;
|
||||
|
||||
// Set to true when setHDRImageDescription() returns false, indicating
|
||||
// Set to true when setHDRImageDesc() returns false, indicating
|
||||
// the display server could not apply the HDR image description.
|
||||
// Checked by the renderer to fall back to software tone-mapping.
|
||||
_Atomic(bool) hdrDescFailed;
|
||||
|
||||
@@ -36,7 +36,7 @@ static LG_RendererFormat l_surfaceFormat;
|
||||
|
||||
static void updateSurfaceFormat(void)
|
||||
{
|
||||
if (!g_state.ds->setHDRImageDescription)
|
||||
if (!g_state.ds->setHDRImageDesc)
|
||||
return;
|
||||
|
||||
LG_RendererFormat format = {};
|
||||
@@ -50,7 +50,7 @@ static void updateSurfaceFormat(void)
|
||||
format.hdr = false;
|
||||
format.hdrPQ = false;
|
||||
format.hdrMetadata = false;
|
||||
g_state.ds->setHDRImageDescription(&format);
|
||||
g_state.ds->setHDRImageDesc(&format);
|
||||
atomic_store(&g_state.hdrDescFailed, false);
|
||||
return;
|
||||
}
|
||||
@@ -63,12 +63,12 @@ static void updateSurfaceFormat(void)
|
||||
format.hdr = false;
|
||||
format.hdrPQ = false;
|
||||
format.hdrMetadata = false;
|
||||
g_state.ds->setHDRImageDescription(&format);
|
||||
g_state.ds->setHDRImageDesc(&format);
|
||||
DEBUG_WARN("Renderer surface cannot represent the native HDR encoding; "
|
||||
"using software HDR mapping");
|
||||
atomic_store(&g_state.hdrDescFailed, true);
|
||||
}
|
||||
else if (!g_state.ds->setHDRImageDescription(&format))
|
||||
else if (!g_state.ds->setHDRImageDesc(&format))
|
||||
{
|
||||
DEBUG_WARN("Display server failed to apply HDR image description");
|
||||
atomic_store(&g_state.hdrDescFailed, true);
|
||||
|
||||
Reference in New Issue
Block a user