From 4460d091408c72ebb68453e8d3ec240e1daea04e Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 31 Jul 2022 16:09:57 +0200 Subject: [PATCH] ui: Fixed highlighting alpha value --- plugins/builtin/source/content/views/view_hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 48cf2bb00..fdf009d8a 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -722,7 +722,7 @@ namespace hex::plugin::builtin { } if (color.has_value()) - color = *color | (this->m_selectionColor & 0xFF000000); + color = (*color & 0x00FFFFFF) | (this->m_selectionColor & 0xFF000000); return color; }();