MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / init_for_scale

Method init_for_scale

gui/gui_icons.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void GDREGuiIcons::init_for_scale(float scale) {
88 MutexLock lock(init_lock);
89
90 // Check if this scale is already initialized
91 if (icons.has(scale)) {
92 return;
93 }
94
95 // Initialize all icons for this scale
96 for (int i = 0; i < gdre_icons_count; i++) {
97 icons[scale][gdre_icons_names[i]] = generate_icon(i, scale);
98 }
99}
100
101void GDREGuiIcons::add_icons_to_theme(Control *p_theme) {
102 auto scale = p_theme->get_theme_default_base_scale();

Callers

nothing calls this directly

Calls 1

generate_iconFunction · 0.85

Tested by

no test coverage detected