Re: [AD] Two custom mouse cursor patches |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Two custom mouse cursor patches
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Tue, 16 Sep 2008 10:12:06 -0400
On 16 Sep 2008, at 10:00, Peter Hull wrote:
I think it should do that.
Ok.
I confess that NSImageFromAllegroBitmap isn't right because
NSBitmapImageRep uses premultiplied alpha and allegro doesn't.
I'm not sure I fully understand what that means. The present code
does seem to do the right thing, if that's what matters.
Have a look at http://developer.apple.com/documentation/Cocoa/
Reference/ApplicationKit/Classes/NSBitmapImageRep_Class/Reference/
Reference.html
I think you probably wouldn't notice much on a small image.
More so because I think the image I tested with has alpha values of 1
and 0, where it doesn't matter. Surely that's not too difficult to
fix though?
I'll have a look at that too.
I think the latter is best, the GL code fills in the vtable in the
same way.
Great, I thought that would be the best way to go too.
That's my evening sorted!
Evert