render_con: fix height rounding in aspect ratio computation
Patch status: merged
Patch by Clément Bœsch
With a 484x292 window and proportion of 488x294, new_height is 291.590164 after the loop, causing a rounding issue leading to a window of 484x291. --- To reproduce the bug: wget http://lucy.pkh.me/youtube-free.webm mplayer youtube-free.webm If you don't use vo sdl but xv/vdpau/gl/... the window will be 484x291 instead of 484x292. This is particularly visible with this video since the scaling of the window will blur some of the characters of the video. Here is a preview: http://b.pkh.me/ffplay.png FAIL http://b.pkh.me/mpv.png FAIL While the problem looks indeed related to a rounding issue, I'm not sure this fix is the proper solution. Note: I'm sorry I wasn't able to run the testsuite (failing to install X11::XCB because of missing pthread-stubs package or something) so I hope everything is OK.
To apply this patch, use:
curl http://cr.i3wm.org/patch/147/raw.patch | git am