From: Matthijs Kooijman Date: Mon, 24 Aug 2009 19:55:46 +0000 (+0200) Subject: Add comment. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Ffpprac.git;a=commitdiff_plain;h=71612a0748db45e78a07aa5f92da543688573745 Add comment. --- 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