On Sat, Jul 26, 2008 at 4:36 PM, Elliott Slaughter
<[EMAIL PROTECTED]> wrote:
> On Sun, Jul 20, 2008 at 1:25 AM, Luke Crook <[EMAIL PROTECTED]> wrote:
>>
>> On Sat, 19 Jul 2008 19:13:36 -0700, Justin Heyes-Jones
>> <[EMAIL PROTECTED]> wrote:
>>
>> >
>> > It should work as long as SDL doesn't change. lispbuilder-sdl started
>> > off as a simple wrapper for SDL and that layer will always be there.
>> >
>> > Although I think this is pretty cool and it would be cool if it was
>> > integrated into lispbuilder.
>>
>> Added to lispbuilder-sdl:
>>
>> - (LOAD-IMAGE VECTOR)
>> - (LOAD-IMAGE RWOPS)
>>
>> Added to lispbuilder-sdl-image
>>
>> - (LOAD-IMAGE VECTOR)
>
> I just updated my copy of lispbuilder-sdl to the newest version
> (revision 727), which seems to have broken
> sdl-image-examples:image-example on both SBCL and CLISP (error
> messages included below). It looks like they are trying to load from a
> vector when passed a filename.

Confirmed. The following patch seems to make everything work fine again.

Index: sdl-image-util.lisp
===================================================================
--- sdl-image-util.lisp (revision 727)
+++ sdl-image-util.lisp (working copy)
@@ -136,7 +136,7 @@
              :key-color key-color :surface-alpha surface-alpha :image-type 
image-type
              :force force :free t :key-color-at key-color-at))

-(defmethod load-image (source &key key-color surface-alpha
(image-type nil) (force nil) (free nil) (key-color-at nil))
+(defmethod load-image ((source string) &key key-color surface-alpha
(image-type nil) (force nil) (free nil) (key-color-at nil))
   "Creates and returns a new surface from the image in the file at
the location `SOURCE`.

 ##### Parameters


-- 
Elliott Slaughter

"Any road followed precisely to its end leads precisely nowhere." -
Frank Herbert
_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to