summaryrefslogtreecommitdiffstats
path: root/loader/resource.c
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2020-12-02 12:39:57 +0200
committeravih <avih@users.noreply.github.com>2020-12-02 17:06:11 +0200
commit84d0930fa1489868ef3034b5ae18ba760b1a2db9 (patch)
treedbc4b6c61fd8a9574cc604a9501cbd65a68c7900 /loader/resource.c
parentda48bb6709b83b2cc7ba4aa370fb4ef0daf24ae7 (diff)
downloadmpv-master.tar.bz2
mpv-master.tar.xz
vo_sixel: don't divide by zero on small terminalHEADmaster
Our canvas size calculation is affected by few factors, and rounded down more than once - which can result in 0 width or (more typically) height - e.g. when terminal height is one row. If the width or height are 0 then all bets are off, so simply skip the setups and rendering on this case. We can still recover automatically if the terminal is resized to become bigger.
Diffstat (limited to 'loader/resource.c')
0 files changed, 0 insertions, 0 deletions