sub/spudec: fix artefacts at right border of subtitles
commitdbde82d0f27819f707a6b35f8c9424653a9dd544
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 7 Apr 2011 21:08:49 +0000 (7 21:08 +0000)
committerUoti Urpala <uau@mplayer2.org>
Sun, 1 May 2011 21:36:20 +0000 (2 00:36 +0300)
treec1aefbaf8dff67ca667fa5bb8963bc1b37ac1f14
parente617653265aeb63cc555761b685ca98a6e2cb80f
sub/spudec: fix artefacts at right border of subtitles

Fix artefacts at right border of scaled bitmap subtitles by clearing
the destination to 0 first if the width is not a multiple of 8.
This is necessary because some of the optimized sub drawing functions
always draw pixels in multiples of 8, so we cannot rely on any "dirt"
in the "unused" borders being ignored.
Note that due to the way rendering works, both alpha and the image need
to be cleared.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33230 b3059339-0415-0410-9bf9-f77b7e298cf2
sub/spudec.c