On Thu, 11 Jun 2009 03:30:05 -0700, Ben Holm <benbe...@gmail.com> wrote:

> On 6/11/09, Luke Crook <l...@balooga.com> wrote:
>> Can you attach the image? It will help with debugging.
>>
>
>   Here it is.  I'm just prototyping ideas at this point, so it's not
> too interesting.

SDL does not support both per-pixel alpha and per-surface alpha blending.  
When both are specified then per-pixel alpha takes precedence. Your PNG  
image has a per-pixel alpha channel specified.

To use per-surface alpha you will first need to strip away the per-pixel  
alpha channel. To do this you can create a new surface with :pixel-alpha  
NIL. Then blit the png to this new surface.

For example;

(setf png-image (sdl-image:load-image "base.png"))
(setf image-new (sdl:create-surface (sdl:width png-image) (sdl:width  
png-image) :pixel-alpha nil :alpha 128))
(sdl:blit-surface png-image image-new)

- Luke
_______________________________________________
application-builder mailing list
application-builder@lispniks.com
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to