Skip to content

Commit fc74c06

Browse files
committed
consistency: remove uneeded reference through pointer
1 parent e9ff303 commit fc74c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/gui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,10 +1962,10 @@ static void render_icon(gui_view_node_t* node, const dispWin_t cs, const uint8_t
19621962
JADE_ASSERT(node->kind == ICON);
19631963

19641964
if (node->icon) {
1965-
const color_t* color = node->is_selected ? &node->icon->selected_color : &node->icon->color;
1965+
const color_t color = node->is_selected ? node->icon->selected_color : node->icon->color;
19661966
const bool transparent = node->icon->bg_color == node->icon->color;
19671967
display_icon(&node->icon->icon, resolve_halign(0, node->icon->halign), resolve_valign(0, node->icon->valign),
1968-
*color, cs, transparent ? NULL : &node->icon->bg_color);
1968+
color, cs, transparent ? NULL : &node->icon->bg_color);
19691969
}
19701970

19711971
// Draw any children directly over the current node

0 commit comments

Comments
 (0)