twin canvases

Started by cormullion, July 07, 2008, 09:44:18 AM

Previous topic - Next topic

cormullion

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

Lutz

#1
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">http://www.newlisp.org/downloads/develo ... server.lsp">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

cormullion

#2
That's the quickest bug fix I've seen for ages... I can't fix my own code as fast as that... :)



Thanks!

m i c h a e l

#3
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? :-)

Lutz

#4
I repackaged the PPC version:



http://newlisp.org/downloads/development/newlisp-9.4.2-ppc.dmg">http://newlisp.org/downloads/developmen ... .2-ppc.dmg">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 :-)