mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
b39e4227c2
The code tried to extract a rounded whole number of pixels while preserving the fraction. However, it failed to converge for the value 0.5, rounded to 1, leaving -0.5, rounded to -1, leaving 0.5 and so on. Drop the cleverness and truncate the values instead. Signed-off-by: Elias Naur <mail@eliasnaur.com>