From e608e2f34f76b700e0f94ee0199f232984f522d8 Mon Sep 17 00:00:00 2001 From: Learath2 Date: Sat, 11 May 2019 02:32:37 +0200 Subject: [PATCH] Add Hex display --- src/engine/shared/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index bf666bb5b..579fc8371 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -772,7 +772,7 @@ static void ColVariableCommand(IConsole::IResult *pResult, void *pUserData) pData->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", aBuf); ColorRGBA rgb = color_cast(hsl); - str_format(aBuf, sizeof(aBuf), "R: %d, G: %d, B: %d", round_truncate(rgb.r * 255), round_truncate(rgb.g * 255), round_truncate(rgb.b * 255)); + str_format(aBuf, sizeof(aBuf), "R: %d, G: %d, B: %d, #%06X", round_truncate(rgb.r * 255), round_truncate(rgb.g * 255), round_truncate(rgb.b * 255), rgb.Pack() & 0xFFFFFF); pData->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", aBuf); if(pData->m_Alpha)