src/video/SDL_video.c
changeset 3091 32efcc94b3da
parent 3083 0bc41e0361d3
child 3092 cad1aefa2ed9
     1.1 --- a/src/video/SDL_video.c	Thu Mar 12 03:51:39 2009 +0000
     1.2 +++ b/src/video/SDL_video.c	Sun Mar 15 15:50:18 2009 +0000
     1.3 @@ -1456,7 +1456,8 @@
     1.4      SDL_Window *window = SDL_GetWindowFromID(windowID);
     1.5  
     1.6      if (!window) {
     1.7 -        return 0;
     1.8 +        SDL_SetError("Invalid window ID");
     1.9 +        return -1;
    1.10      }
    1.11      if (index < 0) {
    1.12          const char *override = SDL_getenv("SDL_VIDEO_RENDERER");