]> git.mdlowis.com Git - proto/labwc.git/commit
scaled-icon-buffer: fix large client-side icon not being loaded
authortokyo4j <hrak1529@gmail.com>
Sat, 30 Aug 2025 05:13:59 +0000 (14:13 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 30 Aug 2025 07:50:03 +0000 (08:50 +0100)
commita382389e5ee0823531a7fd34534b6f364555cab8
tree92a5ae4a37f919a3c832e221b8e9ad0f6558d18b
parent2e9292b7a3f55463030bc2a9640498525ffa3cd6
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.
src/common/scaled-icon-buffer.c