diff --git a/src/core/guncon.cpp b/src/core/guncon.cpp index 45d870b2b..f947fed72 100644 --- a/src/core/guncon.cpp +++ b/src/core/guncon.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin +// SPDX-FileCopyrightText: 2019-2025 Connor McLaughlin // SPDX-License-Identifier: CC-BY-NC-ND-4.0 #include "guncon.h" @@ -323,7 +323,10 @@ void GunCon::LoadSettings(const SettingsInterface& si, const char* section, bool cursor_color_str[0] == '#' ? std::string_view(cursor_color_str).substr(1) : std::string_view(cursor_color_str), 16)); if (cursor_color_opt.has_value()) + { cursor_color = cursor_color_opt.value(); + cursor_color = (cursor_color & 0x00FF00u) | ((cursor_color >> 16) & 0xFFu) | ((cursor_color & 0xFFu) << 16); + } } const s32 prev_pointer_index = GetSoftwarePointerIndex(); diff --git a/src/core/justifier.cpp b/src/core/justifier.cpp index dd91644cd..583633249 100644 --- a/src/core/justifier.cpp +++ b/src/core/justifier.cpp @@ -418,7 +418,10 @@ void Justifier::LoadSettings(const SettingsInterface& si, const char* section, b cursor_color_str[0] == '#' ? std::string_view(cursor_color_str).substr(1) : std::string_view(cursor_color_str), 16)); if (cursor_color_opt.has_value()) + { cursor_color = cursor_color_opt.value(); + cursor_color = (cursor_color & 0x00FF00u) | ((cursor_color >> 16) & 0xFFu) | ((cursor_color & 0xFFu) << 16); + } } const s32 prev_pointer_index = GetSoftwarePointerIndex();