Skip to content

Commit 9396905

Browse files
[config] rename enable member to enabled_by_default for more redability
1 parent f1a07a9 commit 9396905

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

projects/redemption_configs/redemption_src/configs/parsers/parse_performance_flags.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
1616

1717
inline char const* parse_performance_flags(RdpPerformanceFlags& x, chars_view flags)
1818
{
19-
struct P { uint32_t flag; bool enable; std::string_view name; };
19+
struct P { uint32_t flag; bool enabled_by_default; std::string_view name; };
2020
static constexpr P pairs[] {
2121
{0x001, true, "wallpaper"},
2222
{0x002, true, "full_window_drag"},
@@ -51,7 +51,7 @@ inline char const* parse_performance_flags(RdpPerformanceFlags& x, chars_view fl
5151
if (flag[0] < '0' || '9' < flag[0]) {
5252
for (auto p : pairs) {
5353
if (p.name == flag.as<std::string_view>()) {
54-
if (enable == p.enable) {
54+
if (enable == p.enabled_by_default) {
5555
force_not_present |= p.flag;
5656
}
5757
else {

src/core/RDP/rdp_performance_flags.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
99
#include <cstdint>
1010

1111

12+
// see also parse_performance_flags()
1213
struct RdpPerformanceFlags
1314
{
1415
uint32_t force_present = 0;

0 commit comments

Comments
 (0)