xvimagesink: use xcontext->depth instead of bits in attr.max_value for colorkey
authorStefan Kost <ensonic@users.sf.net>
Thu, 26 Mar 2009 16:54:56 +0000 (18:54 +0200)
committerStefan Kost <ensonic@users.sf.net>
Tue, 31 Mar 2009 09:27:09 +0000 (12:27 +0300)
commit2f90615d14574c62453f55a854f4599bce1391a3
treefdf88b150b1da1e981bbd7ab5d947aa426ccc32f
parent79de0b8d67df6fbbe79455adc2e06858295f5c03
xvimagesink: use xcontext->depth instead of bits in attr.max_value for colorkey

According to the drivers in http://cgit.freedesktop.org/xorg/driver/ we should
format the colorkey depending on xcontext->depth. This is what they will use to
interprete the value. The max_value in turn is usualy a constant regardless of
the depth.
sys/xvimage/xvimagesink.c