From a0a4d04df664c9e2285e239e26b8a04f30702222 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 18 Jul 2010 10:39:24 -0700 Subject: [PATCH] Fixed bug 957 Fixed the documentation for SDL_GetWMInfo() --- include/SDL_syswm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/SDL_syswm.h b/include/SDL_syswm.h index 716dddcb7..bba6404d4 100644 --- a/include/SDL_syswm.h +++ b/include/SDL_syswm.h @@ -203,8 +203,9 @@ typedef struct SDL_SysWMinfo { /** * This function gives you custom hooks into the window manager information. * It fills the structure pointed to by 'info' with custom information and - * returns 1 if the function is implemented. If it's not implemented, or - * the version member of the 'info' structure is invalid, it returns 0. + * returns 0 if the function is not implemented, 1 if the function is + * implemented and no error occurred, and -1 if the version member of + * the 'info' structure is not filled in or not supported. * * You typically use this function like this: * @code