diff options
author | Araq <rumpf_a@web.de> | 2012-11-01 08:32:30 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-01 08:32:30 +0100 |
commit | f35b51c68fb758b4ab40b06674e75a75ebf1bf38 (patch) | |
tree | 9923eb7c97f2e15b57a3003be7328ebb9e8a2e3f /lib/impure | |
parent | 42d0911d6a1daa60cfe0dcd2cf8c403083f6ca65 (diff) | |
download | Nim-f35b51c68fb758b4ab40b06674e75a75ebf1bf38.tar.gz |
doc2 support for nimweb; fixed graphics.withEvents
Diffstat (limited to 'lib/impure')
-rwxr-xr-x | lib/impure/graphics.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/impure/graphics.nim b/lib/impure/graphics.nim index b3bc578d0..0ec2d3903 100755 --- a/lib/impure/graphics.nim +++ b/lib/impure/graphics.nim @@ -487,7 +487,8 @@ proc fillSurface*(sur: PSurface, color: TColor) = if sdl.FillRect(sur.s, nil, sur.createSdlColor(color)) == -1: raiseEGraphics() -template withEvents*(surf: PSurface, event: expr, actions: stmt): stmt = +template withEvents*(surf: PSurface, event: expr, actions: stmt): stmt {. + immediate.} = ## Simple template which creates an event loop. ``Event`` is the name of the ## variable containing the TEvent object. while True: |