[MPlayer-dev-eng] [PATCH] vo_vesa flicker with stupid BIOS and -double

Aurelien JACOBS aurel at gnuage.org
Mon Dec 30 00:27:16 CET 2002


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 (VIA Epia motherboard with
Trident Cyberblade integrated).

Here is this trivial patch (same as attachment):

--- vo_vesa.c.orig      2002-12-18 00:39:47.000000000 +0100
+++ vo_vesa.c   2002-12-18 00:39:26.000000000 +0100
@@ -965,18 +965,20 @@
          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++)
            {
                win.ptr = dga_buffer = video_base + multi_buff[i];
+                /* Clear screen for stupid BIOSes */
+                clear_screen();
                if(verbose>1) paintBkGnd();
            }
        }
        else
        {
+            /* Clear screen for stupid BIOSes */
+            clear_screen();
            if(verbose>1) paintBkGnd();
            {
                int x;
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vo_vesa.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021230/bc8b63f0/attachment.asc>


More information about the MPlayer-dev-eng mailing list