[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [freesci-develop] Alpha on mouse pointer
From: |
Christoph Reichenbach |
Subject: |
Re: [freesci-develop] Alpha on mouse pointer |
Date: |
Sun, 5 Feb 2006 16:44:25 -0700 |
User-agent: |
Mutt/1.5.4i |
Alex,
On Mon, Feb 06, 2006 at 08:38:18AM +0930, Alex Angas wrote:
> Can someone please help me out with the correct way to the
> determine the alpha mask for the mouse pointer?
If you have a look at the pointer's index data, all colours except for
GFX_COLOR_INDEX_TRANSPARENT are opaque. So you can calculate the alpha mask
by going through the index data.
Since this is evidently a bugfixing task and thus meets the qualifications
of the code freeze, I've taken the liberty of moving the xlib implementation
of this process (now documented in gfx_driver.h as
gfx_create_mono_cursor_mask()) into a more accessible place, i.e. you should
be able to use the prototype directly now.
This can give you the opacity/alpha mask directly as a bitmask (scaled, if
neccessary), which is most likely what you want. Let me know if it is not.
-- Christoph
pixmaps-refact.diff
Description: Text document