Bug in Gtk2HS 0.9.12/SOE on WinXP? Or is it just me?

First of all, I'm really excited that GTK2HS 0.9.12 now allows launching SOE apps using GHCI. However, in the code below the blue and green triangle should render on top of each other, but the green triangle is rendered incorrectly. Being a newbie, I hesitate to file a bug report... Can anyone reproduce this? Maybe it works fine on unix? Thanks, Peter module Main where import Graphics.SOE.Gtk shape = [(200,100), (200,200), (100,200), (200,100)] main = runGraphics $ do w <- openWindow "Buggy polgon fill?" (300,300) setGraphic w $ (withColor Red $ polyline shape) `overGraphic` (withColor Green $ drawRegion $ createPolygon shape) drawInWindow w $ (withColor Red $ polyline shape) `overGraphic` (withColor Blue $ polygon shape) waitForClose w closeWindow w waitForClose w = do e <- getWindowEvent w case e of Closed -> return () otherwise -> waitForClose w

Peter Verswyvelen
However, in the code below the blue and green triangle should render on top of each other, but the green triangle is rendered incorrectly.
Being a newbie, I hesitate to file a bug report... Can anyone reproduce this? Maybe it works fine on unix?
I can reproduce this with 0.9.12. $ uname -srmo Linux 2.6.20-16-generic i686 GNU/Linux I'm quoting your program below because I'll Cc this to the gtk2hs-users list.
module Main where
import Graphics.SOE.Gtk
shape = [(200,100), (200,200), (100,200), (200,100)]
main = runGraphics $ do w <- openWindow "Buggy polgon fill?" (300,300) setGraphic w $ (withColor Red $ polyline shape) `overGraphic` (withColor Green $ drawRegion $ createPolygon shape) drawInWindow w $ (withColor Red $ polyline shape) `overGraphic` (withColor Blue $ polygon shape) waitForClose w closeWindow w
waitForClose w = do e <- getWindowEvent w case e of Closed -> return () otherwise -> waitForClose w

On Fri, 2007-08-24 at 11:58 +0200, Malte Milatz wrote:
Peter Verswyvelen
: However, in the code below the blue and green triangle should render on top of each other, but the green triangle is rendered incorrectly.
Being a newbie, I hesitate to file a bug report... Can anyone reproduce this? Maybe it works fine on unix?
I can reproduce this with 0.9.12.
I think this is now fixed. It's included in the current Gtk2Hs darcs repo or if you want to use your existing Gtk2Hs-0.9.12 installation you can get the updated soegtk package from hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/soegtk Duncan
participants (3)
-
Duncan Coutts
-
Malte Milatz
-
Peter Verswyvelen