mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
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:
parent
ddfaae98ad
commit
465aac5514
3 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue