Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Driver patch to avoid OSD flicker



I suggest the following patch to the latest CVS driver in
order to make it possible for an OSD window to be "initially hidden".

It "abuses" the 'data' pointer as a boolean switch to determine whether
the caller wishes to have the window created initially hidden.

VDR 0.84 sets 'data' to '(void *)1' to make use of this.

This patch does not break any existing code, because the data parameter
has not been used here before, and the default behaviour is unchanged.

Ralph: would you mind adding this patch (plus the one I posted a few minutes
ago to fix the 'play_iframe' problem) to the latest driver - and maybe make
a new TGZ archive of that driver for people unable to access the CVS archive?
Thanks.

--- dvb.c.001   Sat Jul 21 00:08:18 2001
+++ dvb.c       Sun Jul 22 18:06:13 2001
@@ -1715,8 +1715,11 @@
                 dvb->osdbpp[dvb->osdwin]=(dc->color-1)&7;
                 CreateOSDWindow(dvb, dvb->osdwin, bpp2bit[dvb->osdbpp[dvb->osdwin]],
                                 dc->x1-dc->x0+1, dc->y1-dc->y0+1);
-                MoveWindowAbs(dvb, dvb->osdwin, dc->x0, dc->y0);
-                SetColorBlend(dvb, dvb->osdwin);
+                if (!dc->data)
+                {
+                   MoveWindowAbs(dvb, dvb->osdwin, dc->x0, dc->y0);
+                   SetColorBlend(dvb, dvb->osdwin);
+                }
                 return 0;
         case OSD_Show:
                 MoveWindowRel(dvb, dvb->osdwin, 0, 0);

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index