Re: [ql-users] use of new system sprites from C68?

2004-09-22 Thread Geogwilt
In a message dated 14/09/04 10:11:20 GMT Daylight Time, [EMAIL PROTECTED] 
writes:

 
 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.
 

My program SETW, which produces window definitions for C68 programs using 
CPTR sets the following for all the system sprites:

static short SYS_SPR[] =
{0,1,2, 37};

This array contains the definitions for all 38 system sprites. For example 
SYS_SPR + 6 gives the move sprite and SYS_SPR + 10 the sleep sprite.

I gave a list of the sprites in an article in QL Today Vol 8 Issue 3. (See 
page 23.)

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


Re: [ql-users] use of new system sprites from C68?

2004-09-17 Thread James Hunkins
No problems - plenty of other code work to do over the weekend on QDT :)
I appreciate your help!
Cheers,
jim
On Sep 16, 2004, at 10:38 PM, Jérôme_Grimbert wrote:
James Hunkins wrote:
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.
Ok.
You will have to wait till monday, but just be patient...
___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm
___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


Re: [ql-users] use of new system sprites from C68?

2004-09-16 Thread James Hunkins
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


Re: [ql-users] use of new system sprites from C68?

2004-09-16 Thread Jérôme Grimbert
James Hunkins wrote:
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.
Ok.
You will have to wait till monday, but just be patient...
___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


[ql-users] use of new system sprites from C68?

2004-09-14 Thread James Hunkins
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?

Thanks,
jim
___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


Re: [ql-users] use of new system sprites from C68?

2004-09-14 Thread Jérôme Grimbert
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


Re: [ql-users] use of new system sprites from C68?

2004-09-14 Thread James Hunkins
Just did several different combinations with your array suggestion, 
including different pointer methods and all give me the red 'X' sprite. 
 I am sure that it is something very simple that I am missing so if you 
do get a chance to dig up a sample of your working code, I would really 
appreciate it.  Trying to add the new system icons into QDT.

Cheers,
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