Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-01-02 17:29:01 +0300
committerJulian Eisel <julian@blender.org>2021-01-02 17:36:51 +0300
commit0330b0552b90e647df3ea1f2094f4517df26250d (patch)
tree5c21e8fc0a66510510fdc740d265cf4f07f4f1c8 /source/blender/editors/include/UI_interface_icons.h
parent057a8afb879c58fa40b10a2ab55debded82d19bb (diff)
Cleanup: Explicitly pass icon size to generation function, not just bool
* This way you don't have to look up the function declaration to know what the boolean value means. * You can call the function in a loop over the available sizes and pass the index as size. * Makes it easier to add a new size in future if needed.
Diffstat (limited to 'source/blender/editors/include/UI_interface_icons.h')
-rw-r--r--source/blender/editors/include/UI_interface_icons.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface_icons.h b/source/blender/editors/include/UI_interface_icons.h
index 78fcd6e7dfa..d77a87e7200 100644
--- a/source/blender/editors/include/UI_interface_icons.h
+++ b/source/blender/editors/include/UI_interface_icons.h
@@ -76,7 +76,7 @@ bool UI_icon_get_theme_color(int icon_id, unsigned char color[4]);
void UI_icon_render_id(const struct bContext *C,
struct Scene *scene,
struct ID *id,
- const bool big,
+ const enum eIconSizes size,
const bool use_job);
int UI_icon_preview_to_render_size(enum eIconSizes size);