# HG changeset patch # User Sam Lantinga # Date 1279474764 25200 # Node ID 3f2d351d8274bf812796ef1bcc4f7b494174dda4 # Parent d7cdc25af9a2a5e639382cebed896408bed56e2c Fixed bug 957 Fixed the documentation for SDL_GetWMInfo() diff -r d7cdc25af9a2 -r 3f2d351d8274 include/SDL_syswm.h --- a/include/SDL_syswm.h Sun Jul 18 10:28:57 2010 -0700 +++ b/include/SDL_syswm.h Sun Jul 18 10:39:24 2010 -0700 @@ -203,8 +203,9 @@ /** * 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