OSDN Git Service

Make x11grab cursor drawing suck less
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 7 Nov 2010 18:04:46 +0000 (18:04 +0000)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 7 Nov 2010 18:04:46 +0000 (18:04 +0000)
commit8ce803db51a28eb662b6271b2b223e0312bdb3d2
treeacbcd06fcaa05e82c9a5b4b12ab20ef0a523d3c6
parent46db10ed0e04872eb9b003129f8395005c935ca4
Make x11grab cursor drawing suck less
This new version:
1.  Works on 24-bit and 32-bit input, not just 32-bit.
2.  Doesn't try to run on 16-bit or 8-bit, instead of outright crashing.
3.  Does proper alpha-blending, so cursor shadows look correct.
4.  Doesn't swap R and B.

Mostly fixes issue 1997.
Fixes issue 2056.

Originally committed as revision 25690 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/x11grab.c