summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2013-07-27 11:03:28 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2013-07-27 11:03:28 +0100
commite33af13ae39355ea3f46108d9ed1cb71ff19676e (patch)
tree3f5b4008a6be1e1064e265908e116cef3ea940bb
parent27b7ecbbff073ad8df0a663960f69a87f10e1e35 (diff)
downloadNim-e33af13ae39355ea3f46108d9ed1cb71ff19676e.tar.gz
Fixes #543.
Changed signature of SetVideoMode so that the flags param is a uint32.
-rw-r--r--lib/wrappers/sdl/sdl.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/wrappers/sdl/sdl.nim b/lib/wrappers/sdl/sdl.nim
index 1d43ca556..1c88bc14e 100644
--- a/lib/wrappers/sdl/sdl.nim
+++ b/lib/wrappers/sdl/sdl.nim
@@ -270,6 +270,7 @@
 #
 
 {.deadCodeElim: on.}
+import unsigned
 when defined(windows): 
   const 
     LibName = "SDL.dll"
@@ -1807,7 +1808,7 @@ proc ListModes*(format: PPixelFormat, flags: int32): PPSDL_Rect{.cdecl,
   #  applications that redraw the entire screen on every update.
   #
   #  This function returns the video framebuffer surface, or NULL if it fails.
-proc SetVideoMode*(width, height, bpp: int, flags: int32): PSurface{.cdecl, 
+proc SetVideoMode*(width, height, bpp: int, flags: uint32): PSurface{.cdecl, 
     importc: "SDL_SetVideoMode", dynlib: LibName.}
   # Makes sure the given list of rectangles is updated on the given screen.
   #  If 'x', 'y', 'w' and 'h' are all 0, SDL_UpdateRect will update the entire