[Haskell-cafe] Bug in Gtk2HS 0.9.12/SOE on WinXP? Or is it just me?
bf3 at telenet.be
Thu Aug 23 15:35:43 EDT 2007
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?
module Main where
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 = do
e <- getWindowEvent w
case e of
Closed -> return ()
otherwise -> waitForClose w
More information about the Haskell-Cafe