newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: cormullion on July 07, 2008, 09:44:18 AM

Title: twin canvases
Post by: cormullion on July 07, 2008, 09:44:18 AM
I'm worried about the difference between these two canvases:




(load "/usr/share/newlisp/guiserver.lsp")

(gs:init)
(gs:frame 'F 50 50 500 500 "Two canvases")
(gs:set-grid-layout 'F 2 2)

(gs:canvas 'C1)
(gs:set-background 'C1 '(1 1 1 1))

(gs:canvas 'C2)
(gs:set-background 'C2 '(.5 .5 .5 1))

(gs:set-visible 'F true)

(gs:add-to 'F 'C1 'C2)

(gs:set-canvas 'C1)
(gs:set-translation 100 100)
(gs:fill-rect 'rect1 0 0 50 50)

(gs:set-canvas 'C2)
(gs:set-translation 100 100)
(gs:fill-rect 'rect2 0 0 50 50)

(gs:listen)


because I think they should look identical, apart from the colours...?
Title:
Post by: Lutz on July 07, 2008, 10:14:41 AM
This turns out to be in a bug in /usr/share/newlisp/guiserver.lsp



I posted a new one here:



http://www.newlisp.org/downloads/development/guiserver.lsp



you can install it doing:



sudo cp guiserver.lsp /usr/share/newlisp



it will ask for your password.



ps: the fix is now available in the 9.2.4 development release
Title:
Post by: cormullion on July 07, 2008, 10:24:26 AM
That's the quickest bug fix I've seen for ages... I can't fix my own code as fast as that... :)



Thanks!
Title:
Post by: m i c h a e l on July 07, 2008, 11:15:59 PM
Lutz, this is what I'm getting after updating to 9.4.2:


(s)hell> newlisp
-bash: /newlisp: cannot execute binary file


m i c h a e l



P.S. The printed manual arrived! Thank you. Where is your autograph? :-)
Title:
Post by: Lutz on July 08, 2008, 04:17:51 AM
I repackaged the PPC version:



http://newlisp.org/downloads/development/newlisp-9.4.2-ppc.dmg



it had an Intel executable instead of PPC.



ps: glad the manual made it from coast to coast. I didn't know I had to sign it, and my signature is illegible anyway :-)