Here's a patch to fix SetOpacity for the CRTC2 sub-picture layer. Now it
actually does something :)

-- 
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
Index: gfxdrivers/matrox/matrox_spic.c
===================================================================
RCS file: /cvs/directfb/DirectFB/gfxdrivers/matrox/matrox_spic.c,v
retrieving revision 1.1
diff -u -r1.1 matrox_spic.c
--- gfxdrivers/matrox/matrox_spic.c     5 Sep 2002 11:36:23 -0000       1.1
+++ gfxdrivers/matrox/matrox_spic.c     28 Oct 2002 15:14:04 -0000
@@ -271,8 +271,8 @@
                /* c2statickeyen = 1 */
                mspic->regs.c2DATACTL |= (1 << 5);
                /* c2statickey */
-               mspic->regs.c2DATACTL &= ~0x1F00000;
-               mspic->regs.c2DATACTL |= ((opacity + 2) << 20) & 0x1F00000;
+               mspic->regs.c2DATACTL &= ~0x1F000000;
+               mspic->regs.c2DATACTL |= ((opacity + 2) << 20) & 0x1F000000;
                break;
      }
 
@@ -306,7 +306,8 @@
      TestConfiguration:  spicTestConfiguration,
      SetConfiguration:   spicSetConfiguration,
      FlipBuffers:        spicFlipBuffers,
-     SetPalette:         spicSetPalette
+     SetPalette:         spicSetPalette,
+     SetOpacity:         spicSetOpacity
 };
 
 /* internal */

Reply via email to