From ebc4a91fb537cf32726ba8282898d2805391fad6 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Sat, 16 Nov 2024 11:04:20 +0700 Subject: [PATCH] #1251 fix alpha reverting to > 0 when user sets it to 0 --- GWToolboxdll/Widgets/Minimap/PingsLinesRenderer.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/GWToolboxdll/Widgets/Minimap/PingsLinesRenderer.cpp b/GWToolboxdll/Widgets/Minimap/PingsLinesRenderer.cpp index ed73157dc..cab24ee90 100644 --- a/GWToolboxdll/Widgets/Minimap/PingsLinesRenderer.cpp +++ b/GWToolboxdll/Widgets/Minimap/PingsLinesRenderer.cpp @@ -20,13 +20,7 @@ void PingsLinesRenderer::LoadSettings(const ToolboxIni* ini, const char* section) { color_drawings = Colors::Load(ini, section, "color_drawings", Colors::ARGB(0xFF, 0xFF, 0xFF, 0xFF)); - if ((color_drawings & IM_COL32_A_MASK) == 0) { - color_drawings |= Colors::ARGB(255, 0, 0, 0); - } ping_circle.color = Colors::Load(ini, section, "color_pings", Colors::ARGB(128, 255, 0, 0)); - if ((ping_circle.color & IM_COL32_A_MASK) == 0) { - ping_circle.color |= Colors::ARGB(128, 0, 0, 0); - } marker.color = Colors::Load(ini, section, "color_shadowstep_mark", Colors::ARGB(200, 128, 0, 128)); color_shadowstep_line = Colors::Load(ini, section, VAR_NAME(color_shadowstep_line), color_shadowstep_line); color_shadowstep_line_maxrange = Colors::Load(ini, section, VAR_NAME(color_shadowstep_line_maxrange), color_shadowstep_line_maxrange);