mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
scaled-icon-buffer: fix large client-side icon not being loaded
This commit fixes that client-side icons were not loaded when the rendered icon size is larger than icon sizes from the client. This bug has become more likely to happen due to the new thumnail-style window switcher. The cause was `abs(INT_MIN)` becomes `INT_MIN` due to integer overflow.
This commit is contained in:
parent
2e9292b7a3
commit
a382389e5e
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
|||
static struct lab_data_buffer *
|
||||
choose_best_icon_buffer(struct scaled_icon_buffer *self, int icon_size, double scale)
|
||||
{
|
||||
int best_dist = INT_MIN;
|
||||
int best_dist = -INT_MAX;
|
||||
struct lab_data_buffer *best_buffer = NULL;
|
||||
|
||||
struct lab_data_buffer **buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue