changeset 20420:0c63edaa7714

Fix single-black-pixel-in-upper-left-corner bug (how do people notice a single black pixel?? Amazing...).
author reimar
date Tue, 24 Oct 2006 18:51:38 +0000
parents 39994eb91013
children 6f15e6c57d3b
files libvo/vo_gl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Tue Oct 24 18:45:17 2006 +0000
+++ b/libvo/vo_gl.c	Tue Oct 24 18:51:38 2006 +0000
@@ -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);