Mercurial > sdl-ios-xcode
diff src/video/SDL_video.c @ 3091:32efcc94b3da
Fixed return value for SDL_CreateRenderer()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 15 Mar 2009 15:50:18 +0000 |
parents | 0bc41e0361d3 |
children | cad1aefa2ed9 |
line wrap: on
line diff
--- a/src/video/SDL_video.c Thu Mar 12 03:51:39 2009 +0000 +++ b/src/video/SDL_video.c Sun Mar 15 15:50:18 2009 +0000 @@ -1456,7 +1456,8 @@ SDL_Window *window = SDL_GetWindowFromID(windowID); if (!window) { - return 0; + SDL_SetError("Invalid window ID"); + return -1; } if (index < 0) { const char *override = SDL_getenv("SDL_VIDEO_RENDERER");