Skip to content

Commit

Permalink
nvapi_disp: Format display ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed Jan 25, 2023
1 parent 2dd0c7e commit 21c3b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvapi_disp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extern "C" {
return IncompatibleStructVersion(n);
}

return Ok(str::format(n, " (", displayId, ")"));
return Ok(str::format(n, " (0x", std::hex, displayId, ")"));
}

NvAPI_Status __cdecl NvAPI_Disp_HdrColorControl(NvU32 displayId, NV_HDR_COLOR_DATA* pHdrColorData) {
Expand All @@ -102,7 +102,7 @@ extern "C" {
return IncompatibleStructVersion(n);
}

return NoImplementation(n); // See comment in NvAPI_Disp_GetHdrCapabilities
return NoImplementation(str::format(n, " (0x", std::hex, displayId, ")")); // See comment in NvAPI_Disp_GetHdrCapabilities
}

NvAPI_Status __cdecl NvAPI_DISP_GetDisplayIdByDisplayName(const char* displayName, NvU32* displayId) {
Expand Down

0 comments on commit 21c3b71

Please sign in to comment.