diff options
author | networkException <git@nwex.de> | 2022-06-17 11:45:30 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-17 19:46:30 +0100 |
commit | ccb31b347e3f37caf4a67885ee5e40c40719c628 (patch) | |
tree | 890bddabaec89d4e204e157817aba4d47415bdd0 /Userland/Libraries/LibGfx | |
parent | 28f4b67bdccadbb61af1ea514501a930bef1658b (diff) | |
download | serenity-ccb31b347e3f37caf4a67885ee5e40c40719c628.zip |
LibGfx: Rename DO_PATH macro to ENCODE_PATH to match ThemeEditor
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r-- | Userland/Libraries/LibGfx/SystemTheme.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibGfx/SystemTheme.cpp b/Userland/Libraries/LibGfx/SystemTheme.cpp index 5a018500a7..ae41a1013b 100644 --- a/Userland/Libraries/LibGfx/SystemTheme.cpp +++ b/Userland/Libraries/LibGfx/SystemTheme.cpp @@ -131,19 +131,19 @@ Core::AnonymousBuffer load_system_theme(Core::ConfigFile const& file) ENUMERATE_METRIC_ROLES(__ENUMERATE_METRIC_ROLE) #undef __ENUMERATE_METRIC_ROLE -#define DO_PATH(x, allow_empty) \ +#define ENCODE_PATH(x, allow_empty) \ do { \ auto path = get_path(#x, (int)PathRole::x, allow_empty); \ memcpy(data->path[(int)PathRole::x], path, min(strlen(path) + 1, sizeof(data->path[(int)PathRole::x]))); \ data->path[(int)PathRole::x][sizeof(data->path[(int)PathRole::x]) - 1] = '\0'; \ } while (0) - DO_PATH(TitleButtonIcons, false); - DO_PATH(ActiveWindowShadow, true); - DO_PATH(InactiveWindowShadow, true); - DO_PATH(TaskbarShadow, true); - DO_PATH(MenuShadow, true); - DO_PATH(TooltipShadow, true); + ENCODE_PATH(TitleButtonIcons, false); + ENCODE_PATH(ActiveWindowShadow, true); + ENCODE_PATH(InactiveWindowShadow, true); + ENCODE_PATH(TaskbarShadow, true); + ENCODE_PATH(MenuShadow, true); + ENCODE_PATH(TooltipShadow, true); return buffer; } |