wmtv: Fix calculation of bytes per line.
commit199e0065fe7ceeaa852300f10b4203f1627609fd
authorDoug Torrance <dtorrance@piedmont.edu>
Mon, 1 Feb 2016 05:45:09 +0000 (1 00:45 -0500)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 1 Feb 2016 09:56:00 +0000 (1 15:26 +0530)
treeb84ff0d721d9d096df575054aa8bd1cd15c40b5a
parent61e2c5f228c23d0caa14f50218fc357b5267ee53
wmtv: Fix calculation of bytes per line.

Patch by Yann Vernier <yann@donkey.dyndns.org>.  From [1]:

   From: Malcolm Parsons <malcolm@ivywell.screaming.net>
   Subject: wmtv: incorrectly calculates bytes per line
   Date: Mon, 09 Apr 2001 21:15:52 +0100

   wmtv does not put the tv display in its window on my second head.
   According to bttv, wmtv is telling bttv that the display is:

   Display at ea800000 is 800 by 600, bytedepth 2, bpl 1600

   If I use xawtv, it correctly sets the bpl value:

   Display at ea800000 is 800 by 600, bytedepth 2, bpl 1664

   wmtv is probably incorrectly assuming width * bytedepth = bpl.

   From: Yann Vernier <yann@donkey.dyndns.org>
   Subject: wmtv: incorrectly calculates bytes per line
   Date: Sun, 15 Jul 2001 14:21:56 +0200

   Found the problem, at least this fixes it for me at 1600x1200.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93439
wmtv/src/wmtv.c