mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
gpu: fix off-by-a-half clipping
I don't know why the 1/2 factor is there, but it leads to images being rendered with a 0.5 pixel offset. Remove the other useless checks while here: clipping 1px images shouldn't be a problem and the destination rectangle is always non-zero (otherwise it wouldn't be rendered). Update the reference images that are subtly changed because of this fix. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 458 B |
Binary file not shown.
|
Before Width: | Height: | Size: 539 B After Width: | Height: | Size: 463 B |
Reference in New Issue
Block a user