[PATCH] libavdevice/x11grab.c XFixesGetCursorImage support
I made a patch to add real cursor support in x11grab. But i'm not a c programmer, patch is far from ideal but works for me. I would like, if someone made it proper, add alpha blending and made command line options for no cursor / dummy cursor / real cursor. Thanks.
On Wed, Jul 02, 2008 at 01:22:26PM +0200, Roxis wrote:
I made a patch to add real cursor support in x11grab. But i'm not a c programmer, patch is far from ideal but works for me.
If you know its not ideal then you can recognize some problems, fix them :) the return in the middle is the most obvious one ... [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Its not that you shouldnt use gotos but rather that you should write readable code and code with gotos often but not always is less readable
On Thursday 03 July 2008, Michael Niedermayer wrote:
On Wed, Jul 02, 2008 at 01:22:26PM +0200, Roxis wrote:
I made a patch to add real cursor support in x11grab. But i'm not a c programmer, patch is far from ideal but works for me.
If you know its not ideal then you can recognize some problems, fix them :) the return in the middle is the most obvious one ...
ok, i made another patch. this one is ideal for me ) changelog: dummy cursor code is removed support for grabbing with x/y offset fix cursor position (regards cursor hot-spot)
On Thu, Jul 03, 2008 at 05:37:44PM +0200, Roxis wrote:
On Thursday 03 July 2008, Michael Niedermayer wrote:
On Wed, Jul 02, 2008 at 01:22:26PM +0200, Roxis wrote:
I made a patch to add real cursor support in x11grab. But i'm not a c programmer, patch is far from ideal but works for me.
If you know its not ideal then you can recognize some problems, fix them :) the return in the middle is the most obvious one ...
ok, i made another patch. this one is ideal for me )
changelog: dummy cursor code is removed support for grabbing with x/y offset fix cursor position (regards cursor hot-spot)
configure | 2 libavdevice/x11grab.c | 135 +++++++++----------------------------------------- 2 files changed, 26 insertions(+), 111 deletions(-) f320743428afee1e4e2e8ff2ef7d3fc25b225cd8 xfixes.cursor.patch
patch applied [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Into a blind darkness they enter who follow after the Ignorance, they as if into a greater darkness enter who devote themselves to the Knowledge alone. -- Isha Upanishad
participants (2)
-
michaelni@gmx.at -
roxis@list.ru