[13 Nov 2009] Createpointer()

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
Tarzin
Posts: 112
Joined: Mon Feb 15, 2010 11:46 am
Location: Dunkerque / FRANCE
Contact:

[13 Nov 2009] Createpointer()

Post by Tarzin »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 13 Nov 2009 15:05:52 +0100

Hello,

I'm trying to create a new pointer but did not success. Here is my code (which is the same as in documentation):

Code: Select all

@DISPLAY {title="Match-It!", x=#CENTER, y=#CENTER, width=320, height=240, color = #GREEN}
@BRUSH 2, "pointeur3.png"
CreatePointer(1, #BRUSH, 2, 0, 0)

SetPointer(1)

waitleftmouse
I've tried with various pictures but at each time, I get a green screen, nothing else , no pointer. What is the problem?

Thanks

Tarzin
A500 / A600 / A1200 / SAM440
WinUAE OS3.9 (AmiKit) / OS4.1FE (FlowerPot)
---
https://twitter.com/TarzinCDK
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[14 Nov 2009] Re: Createpointer()

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 14 Nov 2009 12:57:06 +0100
I've tried with various pictures but at each time, I get a green screen, nothing else , no pointer. What is the problem?
Does the PointerDemo example work on your system?
User avatar
Tarzin
Posts: 112
Joined: Mon Feb 15, 2010 11:46 am
Location: Dunkerque / FRANCE
Contact:

[16 Nov 2009] Re: Createpointer()

Post by Tarzin »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 16 Nov 2009 12:55:44 +0100

Hello Andreas

Does the PointerDemo example work on your system?
Yes PointerDemo runs on my system but I don't understand why my code (which is really similar to documentation) doesn't work. It's a code problem ou my pointeur3.png file which is wrong?

Thanks

Eric
A500 / A600 / A1200 / SAM440
WinUAE OS3.9 (AmiKit) / OS4.1FE (FlowerPot)
---
https://twitter.com/TarzinCDK
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[16 Nov 2009] Re: Createpointer()

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 16 Nov 2009 22:24:11 +0100
Yes PointerDemo runs on my system but I don't understand why my code (which is really similar to documentation) doesn't work. It's a code problem ou my pointeur3.png file which is wrong?
The code looks ok. Send me your pointeur3.png and I'll have a look.
User avatar
Tarzin
Posts: 112
Joined: Mon Feb 15, 2010 11:46 am
Location: Dunkerque / FRANCE
Contact:

[17 Nov 2009] Re: Createpointer()

Post by Tarzin »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 17 Nov 2009 07:13:22 +0100
The code looks ok. Send me your pointeur3.png and I'll have a look.
Here it is! I've tried both of them without any result.

Thanks

Eric
A500 / A600 / A1200 / SAM440
WinUAE OS3.9 (AmiKit) / OS4.1FE (FlowerPot)
---
https://twitter.com/TarzinCDK
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[17 Nov 2009] Re: Createpointer()

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 17 Nov 2009 22:55:13 +0100
Here it is! I've tried both of them without any result.
Ok, it seems there is a bug. Only pointer images with transparency seem to work under OS4. I'll fix this. To work around the bug, simply use an image with transparency/alpha channel. I didn't notice this bug because normally, all pointers use transparency :)
Locked