[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.34,1.35

Adam Tla/lka atlka at mplayer.dev.hu
Tue Aug 14 14:51:25 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv773/libvo

Modified Files:
	vo_svga.c 
Log Message:

small changes to erase only needed place (rectangles doesn't overlap)


Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- vo_svga.c	13 Aug 2001 11:08:18 -0000	1.34
+++ vo_svga.c	14 Aug 2001 12:51:23 -0000	1.35
@@ -514,10 +514,14 @@
   if (y_pos) {
     gl_fillbox(0, 0, WIDTH, y_pos, 0);
     gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0);
-  }
-  if (x_pos) {
-    gl_fillbox(0, 0, x_pos, HEIGHT, 0);
-    gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0);
+    if (x_pos) {
+       int hmy=HEIGHT - (y_pos<<1); 
+       gl_fillbox(0, y_pos, x_pos, hmy, 0);
+       gl_fillbox(WIDTH - x_pos, y_pos, x_pos, hmy, 0);
+    }
+  } else if (x_pos) {
+    gl_fillbox(0, y_pos, x_pos, HEIGHT, 0);
+    gl_fillbox(WIDTH - x_pos, y_pos, x_pos, HEIGHT, 0);
   }
 
   vo_draw_text(WIDTH, HEIGHT, draw_alpha);




More information about the MPlayer-cvslog mailing list