summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-24 18:51:38 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-24 18:51:38 +0000
commit3a5074f460f0e91a6144ef2b492dac72106fede3 (patch)
treef5964f2f585421cc2d7736d257518ca3193ed691 /libvo
parent88c688595e7c36f8cda8834a1420082997d42dcc (diff)
downloadmpv-3a5074f460f0e91a6144ef2b492dac72106fede3.tar.bz2
mpv-3a5074f460f0e91a6144ef2b492dac72106fede3.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index cce0057908..4f0fff99fa 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -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);