comparison libvo/vo_vesa.c @ 8652:edfe94b9d578

Juste a trivial patch for vesa output. The screen were cleaned at init for "stupid BIOSes", but just the first buffer. So when using -double option I got flicker with such a stupid BIOS... patch by Aurelien JACOBS <aurel@gnuage.org>
author arpi
date Sun, 29 Dec 2002 23:35:30 +0000
parents 5b39e79af5fe
children 605c85c27e68
comparison
equal deleted inserted replaced
8651:50701f34a161 8652:edfe94b9d578
963 if(verbose) 963 if(verbose)
964 { 964 {
965 printf("vo_vesa: VESA initialization complete\n"); 965 printf("vo_vesa: VESA initialization complete\n");
966 fflush(stdout); 966 fflush(stdout);
967 } 967 }
968 /* Clear screen for stupid BIOSes */
969 clear_screen();
970 if(HAS_DGA() && vo_doublebuffering) 968 if(HAS_DGA() && vo_doublebuffering)
971 { 969 {
972 for(i=0;i<MAX_BUFFERS;i++) 970 for(i=0;i<MAX_BUFFERS;i++)
973 { 971 {
974 win.ptr = dga_buffer = video_base + multi_buff[i]; 972 win.ptr = dga_buffer = video_base + multi_buff[i];
973 clear_screen(); /* Clear screen for stupid BIOSes */
975 if(verbose>1) paintBkGnd(); 974 if(verbose>1) paintBkGnd();
976 } 975 }
977 } 976 }
978 else 977 else
979 { 978 {
979 clear_screen(); /* Clear screen for stupid BIOSes */
980 if(verbose>1) paintBkGnd(); 980 if(verbose>1) paintBkGnd();
981 { 981 {
982 int x; 982 int x;
983 x = (video_mode_info.XResolution/video_mode_info.XCharSize)/2-strlen(title)/2; 983 x = (video_mode_info.XResolution/video_mode_info.XCharSize)/2-strlen(title)/2;
984 if(x < 0) x = 0; 984 if(x < 0) x = 0;