[Mplayer-cvslog] CVS: main/libvo vo_vesa.c,1.44,1.45

Nick Kurshev nick at mplayer.dev.hu
Thu Nov 15 17:45:28 CET 2001


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

Modified Files:
	vo_vesa.c 
Log Message:
Screen clearing instead of stupid BIOSes

Index: vo_vesa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_vesa.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- vo_vesa.c	13 Nov 2001 17:46:16 -0000	1.44
+++ vo_vesa.c	15 Nov 2001 16:45:26 -0000	1.45
@@ -457,6 +457,17 @@
     }
 }
 
+static void clear_screen( void )
+{
+    int x_res = video_mode_info.XResolution;
+    int y_res = video_mode_info.YResolution;
+    int x, y;
+
+    for (y = 0; y < y_res; ++y)
+	for (x = 0; x < x_res; ++x)
+	    __vbeSetPixel(x, y, 0, 0, 0);
+}
+
 static char *model2str(unsigned char type)
 {
   char *retval;
@@ -854,6 +865,8 @@
 	  printf("vo_vesa: VESA initialization complete\n");
 	  fflush(stdout);
 	}
+	/* Clear screen for stupid BIOSes */
+	clear_screen();
 	if(HAS_DGA() && vo_doublebuffering)
 	{
 	    for(i=0;i<MAX_BUFFERS;i++)




More information about the MPlayer-cvslog mailing list