src/video/SDL_video.c
changeset 5403 424f036f7c68
parent 5398 83816c8a2b58
child 5404 6717e01acbe0
--- a/src/video/SDL_video.c	Sat Feb 26 21:39:34 2011 -0800
+++ b/src/video/SDL_video.c	Sun Feb 27 20:06:45 2011 -0800
@@ -108,9 +108,6 @@
         return retval; \
     }
 
-/* Various local functions */
-static void SDL_UpdateWindowGrab(SDL_Window * window);
-
 /* Support for framebuffer emulation using an accelerated renderer */
 
 #define SDL_WINDOWTEXTUREDATA   "_SDL_WindowTextureData"
@@ -1672,22 +1669,6 @@
     return _this->UpdateWindowFramebuffer(_this, window, rects, numrects);
 }
 
-void
-SDL_SetWindowGrab(SDL_Window * window, int mode)
-{
-    CHECK_WINDOW_MAGIC(window, );
-
-    if ((!!mode == !!(window->flags & SDL_WINDOW_INPUT_GRABBED))) {
-        return;
-    }
-    if (mode) {
-        window->flags |= SDL_WINDOW_INPUT_GRABBED;
-    } else {
-        window->flags &= ~SDL_WINDOW_INPUT_GRABBED;
-    }
-    SDL_UpdateWindowGrab(window);
-}
-
 static void
 SDL_UpdateWindowGrab(SDL_Window * window)
 {
@@ -1696,7 +1677,23 @@
     }
 }
 
-int
+void
+SDL_SetWindowGrab(SDL_Window * window, SDL_bool grabbed)
+{
+    CHECK_WINDOW_MAGIC(window, );
+
+    if ((!!grabbed == !!(window->flags & SDL_WINDOW_INPUT_GRABBED))) {
+        return;
+    }
+    if (grabbed) {
+        window->flags |= SDL_WINDOW_INPUT_GRABBED;
+    } else {
+        window->flags &= ~SDL_WINDOW_INPUT_GRABBED;
+    }
+    SDL_UpdateWindowGrab(window);
+}
+
+SDL_bool
 SDL_GetWindowGrab(SDL_Window * window)
 {
     CHECK_WINDOW_MAGIC(window, 0);