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

Nick Kurshev nick at mplayer.dev.hu
Sun Nov 4 18:01:14 CET 2001


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

Modified Files:
	vo_vesa.c 
Log Message:
Code cleanup

Index: vo_vesa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_vesa.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- vo_vesa.c	4 Nov 2001 16:20:40 -0000	1.34
+++ vo_vesa.c	4 Nov 2001 17:01:12 -0000	1.35
@@ -50,6 +50,7 @@
 #define min(a,b) ((a)<(b)?(a):(b))
 #endif
 
+#define UNUSED(x) ((void)(x)) /**< Removes warning about unused arguments */
 
 static vo_info_t vo_info = 
 {
@@ -291,6 +292,13 @@
 
 static void draw_alpha_null(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
 {
+  UNUSED(x0);
+  UNUSED(y0);
+  UNUSED(w);
+  UNUSED(h);
+  UNUSED(src);
+  UNUSED(srca);
+  UNUSED(stride);
 }
 
 
@@ -829,9 +837,8 @@
 	  printf("vo_vesa: VESA initialization complete\n");
 	  fflush(stdout);
 	}
-	if(HAS_DGA())
+	if(HAS_DGA() && vo_doublebuffering)
 	{
-	    int y = 0;
 	    for(i=0;i<MAX_BUFFERS;i++)
 	    {
 		win.ptr = dga_buffer = video_base + multi_buff[i];




More information about the MPlayer-cvslog mailing list