Page 1 of 1

twin canvases

Posted: Mon Jul 07, 2008 4:44 pm
by cormullion
I'm worried about the difference between these two canvases:

Code: Select all

(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...?

Posted: Mon Jul 07, 2008 5:14 pm
by Lutz
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/develo ... server.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

Posted: Mon Jul 07, 2008 5:24 pm
by cormullion
That's the quickest bug fix I've seen for ages... I can't fix my own code as fast as that... :)

Thanks!

Posted: Tue Jul 08, 2008 6:15 am
by m i c h a e l
Lutz, this is what I'm getting after updating to 9.4.2:

Code: Select all

(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? :-)

Posted: Tue Jul 08, 2008 11:17 am
by Lutz
I repackaged the PPC version:

http://newlisp.org/downloads/developmen ... .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 :-)