
10 Dec
2005
10 Dec
'05
5:19 p.m.
The function openWindowEx seems to ignore its second argument (optional initial position of window). Here is the test program to illustrate this, which I ran on Mac OS X (Tiger), using hugs: --- begin program --- import Graphics.HGL main = runGraphics $ do win <- openWindowEx "Test" (Just (200, 300)) (300, 300) Unbuffered Nothing ((x,y), (w,h)) <- getWindowRect win setGraphic win (text (100,100) (show (x,y) ++ " " ++ show (w,h))) getKey win closeWindow win --- end program --- Also, the documentation for the type RedrawMode (http:// www.haskell.org/ghc/docs/latest/html/libraries/HGL/Graphics-HGL- Window.html) seems to have the constructors Buffered and Unbuffered reversed.