aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authore5150 <e5150@noreply.codeberg.org>2024-04-23 08:47:09 +0200
committerNRK <nrk@disroot.org>2024-04-23 08:47:09 +0200
commita581cd6344717551c9bacae58809d83ae6979220 (patch)
tree27b1b76b932dc5e1f105d332aad108f42417bfaf /config.def.h
parent437e060021ccabf9d5c95068c7c52218b92359e1 (diff)
downloadnsxiv-a581cd6344717551c9bacae58809d83ae6979220.tar.zst
fix: image placement when rotating (#493)HEADmaster
When rotating a partially shown image (i.e. image size * zoom > window size) the image is panned to top or left (if `win->w` or `win->h` is greatest, respectively). Seems to be due to unsignedness of `win->[wh]`, when taking the difference between them in `img_rotate` either `img->[xy]` ends up being close to `UINT_MAX` and the image is panned to top or left edge. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/493 Reviewed-by: NRK <nrk@disroot.org> Co-authored-by: e5150 <e5150@noreply.codeberg.org> Co-committed-by: e5150 <e5150@noreply.codeberg.org>
Diffstat (limited to 'config.def.h')
0 files changed, 0 insertions, 0 deletions