Fix single-black-pixel-in-upper-left-corner bug (how do people notice a single

black pixel?? Amazing...).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20436 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-10-24 18:51:38 +00:00
parent 88c688595e
commit 3a5074f460
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ static void create_osd_texture(int x0, int y0, int w, int h,
char *tmp = malloc(stride * h);
// convert alpha from weird MPlayer scale.
// in-place is not possible since it is reused for future OSDs
for (i = h * stride - 1; i > 0; i--)
for (i = h * stride - 1; i >= 0; i--)
tmp[i] = srca[i] - 1;
glUploadTex(gl_target, GL_ALPHA, GL_UNSIGNED_BYTE, tmp, stride,
0, 0, w, h, 0);