[Bug?] gs:canvas

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

[Bug?] gs:canvas

Post by newdep »

Hi Lutz,

Seems the canvas is not the size of the frame?

(gs:frame 'demo 100 100 200 200 "demo")
(gs:canvas 'canvas)
(gs:add-to 'demo 'canvas)
(gs:set-background 'canvas gs:black)

now if it do ->

(gs:draw-rect 'R1 0 0 10 10 gs:red )

its indeed at 0,0


if i do ->

(gs:draw-rect 'R1 190 0 10 10 gs:red )

Its out of bound, This is missing 0.5 pixels in the frame



if i do it Horizotal and vertical ->

(gs:draw-rect 'R1 95 190 10 10 gs:red )

Its out of bound and totaly out of the frame...which is odd...?


Any hints?

Norman.
-- (define? (Cornflakes))

Locked