test/testrelative.c
changeset 6316 a89c79a3f0cd
parent 6311 4e5e46f43438
child 6318 49b2cb56db6e
     1.1 --- a/test/testrelative.c	Wed May 30 15:21:13 2012 -0400
     1.2 +++ b/test/testrelative.c	Thu May 31 13:37:02 2012 +0300
     1.3 @@ -54,7 +54,9 @@
     1.4      }
     1.5  
     1.6      srand((unsigned int)time(NULL));
     1.7 -    SDL_SetRelativeMouseMode(SDL_TRUE);
     1.8 +    if(SDL_SetRelativeMouseMode(SDL_TRUE) < 0) {
     1.9 +        return 3;
    1.10 +    };
    1.11  
    1.12      rect.x = DEFAULT_WINDOW_WIDTH / 2;
    1.13      rect.y = DEFAULT_WINDOW_HEIGHT / 2;