X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Ffpprac.git;a=blobdiff_plain;f=FPPrac.hs;fp=FPPrac.hs;h=9f5ec9d68eb5f5d4c7d523ed9745b51b7bbae8db;hp=7e5a6914225519e0d3056b50344467794f405091;hb=71612a0748db45e78a07aa5f92da543688573745;hpb=34b8f3ca223d5404d5f298e5fe9eb41c4002f0cb diff --git a/FPPrac.hs b/FPPrac.hs index 7e5a691..9f5ec9d 100644 --- a/FPPrac.hs +++ b/FPPrac.hs @@ -177,7 +177,8 @@ runGUI w h (IS { .. }) = do Gtk.mainGUI --- | Copy the given surface to the exposed window on an expose event. +-- | Called when (part of) the window should be redrawn. Copy the given surface +-- to the exposed window on an expose event. onExpose :: IORef Cairo.Surface -> EventM.EventM EventM.EExpose Bool onExpose buffer = do current_buffer <- liftIO $ readIORef buffer