Top secret cursors keys needed ;-)

Malte Starostik malte at kde.org
Wed Feb 12 15:41:21 GMT 2003


On Wednesday 12 February 2003 13:44, Unai Garro wrote:
> > it's not that it requires any modifications in KDE to make use of
> > it.
>
> Well, now I know, but why isn't this info published anywhere in kde.org? It
> looks like a big secret (that's the reason of the subject ;-) ). The only
> info I could find in the mailing lists seems that I need to patch QT in
> order to enable the QT_USE_APPROXIMATE_CURSORS option (or enable it by
> hand)

No need for that as long as you get the hashes right. Here's what I currently 
use (not perfect, but as a start). The attached hack calculates the hashes 
from Qt's cursors (need to add KDE's some time), the ugliest bit-manipulating 
part is to zero out the trailing padding bits in every row in the bitmap as 
Xcursor includes them when calculating the hash ;\

lrwxrwxrwx    1 malte    malte           8 Jan 25 06:14 
00008160000006810000408080010102 -> top_side
lrwxrwxrwx    1 malte    malte          10 Jan 25 06:14 
028006030e0e7ebffc7f7070c0600140 -> right_side
lrwxrwxrwx    1 malte    malte           6 Jan 25 06:15 
03b6e0fcb3499374a867c041f52298f0 -> circle
lrwxrwxrwx    1 malte    malte          10 Jan 25 05:49 
14fef782d02440884392942c11205230 -> right_side
lrwxrwxrwx    1 malte    malte           8 Jan 25 05:49 
2870a09082c103050810ffdffffe0204 -> top_side
lrwxrwxrwx    1 malte    malte           5 Jan 25 08:48 
3ecb610c1bf2410f44200f48c40d3599 -> watch
lrwxrwxrwx    1 malte    malte           5 Jan 18 18:21 
7a12042405024a04940859bd138459f6 -> hand2
lrwxrwxrwx    1 malte    malte           5 Jan 18 18:21 
9d800788f1b08800ae810202380a0822 -> hand2
lrwxrwxrwx    1 malte    malte          15 Jan 25 06:14 
c7088f0f3e6c8088236ef8e1e3e70000 -> top_left_corner
lrwxrwxrwx    1 malte    malte          14 Jan 25 05:44 
d9ce0ab605698f320427677b458ad60b -> question_arrow
lrwxrwxrwx    1 malte    malte           5 Jan 18 18:21 
e29285e634086352946a0e7090d73106 -> hand2
lrwxrwxrwx    1 malte    malte          16 Jan 25 06:14 
fcf1c3c7cd4491d801f1e1c78f100000 -> top_right_corner

HTH,
-Malte
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cursor_hash.c
Type: text/x-csrc
Size: 6663 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030212/6cd0a10f/attachment.c>


More information about the kde-core-devel mailing list