mirror of https://github.com/mpv-player/mpv
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:
parent
88c688595e
commit
3a5074f460
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue