changeset 2688:e9f6634c6374

Code cleanup
author nick
date Sun, 04 Nov 2001 17:01:12 +0000
parents 8c75a9a639c1
children 6a5b6b16d85c
files libvo/vo_vesa.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vesa.c	Sun Nov 04 16:57:09 2001 +0000
+++ b/libvo/vo_vesa.c	Sun Nov 04 17:01:12 2001 +0000
@@ -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];