It just worked when i updated. I create the surfaces with sdl:create-surface, passing a height and width and nothing else:
(defun create-image (width height) (sdl:create-surface width height)) I use sdl-image:load-image to make the source surfaces and sdl:draw-surface-at-* for the drawing to the offscreen surface. On Mon, 2008-08-04 at 13:09 -0700, Luke Crook wrote: > On Mon, 04 Aug 2008 13:02:00 -0700, David O'Toole <[EMAIL PROTECTED]> wrote: > > > Hi Luke, > > > > Upgrading to the latest svn fixed my problem. Thank you. > > > > Note that sdl-image:load-image accepts a :surface-alpha parameter, > > not :channel-alpha, so I could not fully try your suggestion below when > > making surfaces from PNG files. (Supplying :surface-alpha t did not help > > with the old version---only upgrading to svn seems to have fixed it.) > > Also in some spots the docs say that a function will accept > > sdl-src-alpha as a flag, but then the corresponding function doesn't > > accept flags (for example set-alpha), and the docs don't quite seem in > > sync with the situation. > > > Did everything just work when you upgraded, or did you have to first set > :SURAFACE-ALPHA T on your offscreen surface? I would have expected the > latter, or the rules SDL uses for surface blits would not have copied the > ALPHA component across. How do you create your offscreen surface? > > Unfortunately the documentation has remained static while the code has > changed. Have to go back and clean that up. > > - Luke > _______________________________________________ > application-builder mailing list > [email protected] > http://www.lispniks.com/mailman/listinfo/application-builder _______________________________________________ application-builder mailing list [email protected] http://www.lispniks.com/mailman/listinfo/application-builder
