Jerome,

Since no one else has jumped in with help on this yet, would you mind digging through for a sample of your 'C' code showing the proper use of the new system sprites. It would really help me a lot.

Thanks,
jim

On Sep 14, 2004, at 2:30 AM, Jérôme_Grimbert wrote:

James Hunkins wrote:

Has anyone used the new system sprites from C68? This would be using it in the window definition which was originally a pointer to a sprite file.
I have tried it by defining 2 bytes such as:
unsigned short test_sprite = 0x0008; [ byte 0 = 0x00 for a system sprite
0x08 for the sprite number ]
and then doing a pointer to its address from the proper loose item field:
&test_sprite,
If I point to one of the normal sprites (with byte 0 = 0x01) I get the expected sprite. But when I do the above all I get is a red 'X' sprite, no matter what sprite number I use.
Any ideas? If someone has used the new system sprites, could you supply sample code and instructions?

I think I did use the system sprite from C68.
I used an array of char instead of a short... It did work, or so I believe.


I would have to dig that code if you do not get a better answer.
_______________________________________________
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


_______________________________________________ QL-Users Mailing List http://www.quanta.org.uk/mailing.htm

Reply via email to