ssd: respect logical size when displaying window icon

get_scale_box() was using the raw pixel size of the icon buffer for
layout, which caused the icon to be incorrectly scaled up if the buffer
scale was >1.
This commit is contained in:
John Lindgren 2024-10-06 21:29:40 -04:00
parent ddfaae98ad
commit 465aac5514
3 changed files with 9 additions and 9 deletions

View file

@ -635,7 +635,7 @@ ssd_update_window_icon(struct ssd *ssd)
for (uint8_t state_set = 0; state_set <= LAB_BS_ALL; state_set++) {
if (button->nodes[state_set]) {
update_window_icon_buffer(button->nodes[state_set],
&icon_buffer->base);
icon_buffer);
}
}
} FOR_EACH_END