Does SetSrcColorKey() work differently for Surfaces than for DisplayLayers?

SetSrcColorKey() for a Surface, is called on the destination Surface. The
set SrcColorKey is taken (from the destination Surface) by any source
Surface when they are blended. That is, the SrcColorKey does not apply to
this Surface but to another Surface when that other Surface is used as the
source with this Surface as the destination.

But SetSrcColorKey() for a DisplayLayer, sets a color key for this layer, so
that this Layer is acting as the source.

Similarly, SetDstColorKey() for a Surface sets a color key for this Surface
when it is the destination for a blend. But SetDstColorKey() for a
DisplayLayer sets a color key for another Layer (the 'underlying' layer) -
that is, it sets a color key for another Layer.

It seems to me that SetSrcColorKey() and SetDstColorKey() work in th
opposite way when applied to a Surface than when applied to a Layer. Is that
a valid interpretation? Is it intended?

Thanks,

========================
Chris Bore
BORES Signal Processing
[EMAIL PROTECTED]
www.bores.com
Tel:    +44 1483 740138
Mobile: +44 7921 153 219 


_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to