diff options
author | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
commit | 46c41e43690cba9bc1caff6a994bb6915df8a1b7 (patch) | |
tree | c96be792eceb1d189cdb5bcff6e1a06f9b51e76c /lib/wrappers/sdl | |
parent | 3d696c3da53e5c41d839d8265fbc94f1c64980bb (diff) | |
download | Nim-46c41e43690cba9bc1caff6a994bb6915df8a1b7.tar.gz |
p[] instead of p^
Diffstat (limited to 'lib/wrappers/sdl')
-rwxr-xr-x | lib/wrappers/sdl/sdl.nim | 4 |
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) |