[MPlayer-cvslog] r20436 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Tue Oct 24 20:51:38 CEST 2006


Author: reimar
Date: Tue Oct 24 20:51:38 2006
New Revision: 20436

Modified:
   trunk/libvo/vo_gl.c

Log:
Fix single-black-pixel-in-upper-left-corner bug (how do people notice a single
black pixel?? Amazing...).


Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	(original)
+++ trunk/libvo/vo_gl.c	Tue Oct 24 20:51:38 2006
@@ -585,7 +585,7 @@
   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);



More information about the MPlayer-cvslog mailing list