summary refs log tree commit diff stats
path: root/lib/wrappers/sdl
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-04-11 23:28:53 +0200
committerAraq <rumpf_a@web.de>2011-04-11 23:28:53 +0200
commit46c41e43690cba9bc1caff6a994bb6915df8a1b7 (patch)
treec96be792eceb1d189cdb5bcff6e1a06f9b51e76c /lib/wrappers/sdl
parent3d696c3da53e5c41d839d8265fbc94f1c64980bb (diff)
downloadNim-46c41e43690cba9bc1caff6a994bb6915df8a1b7.tar.gz
p[] instead of p^
Diffstat (limited to 'lib/wrappers/sdl')
-rwxr-xr-xlib/wrappers/sdl/sdl.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wrappers/sdl/sdl.nim b/lib/wrappers/sdl/sdl.nim
index 51dbfb3c1..8ddab49dd 100755
--- a/lib/wrappers/sdl/sdl.nim
+++ b/lib/wrappers/sdl/sdl.nim
@@ -2525,8 +2525,8 @@ proc AllocSurface(flags: int32, width, height, depth: int,
                             AMask)
 
 proc MustLock(Surface: PSurface): bool = 
-  Result = ((surface^ .offset != 0) or
-      ((surface^ .flags and (HWSURFACE or ASYNCBLIT or RLEACCEL)) != 0))
+  Result = ((surface[] .offset != 0) or
+      ((surface[] .flags and (HWSURFACE or ASYNCBLIT or RLEACCEL)) != 0))
 
 proc LockMutex(mutex: Pmutex): int = 
   Result = mutexP(mutex)