test/testgesture.c
changeset 7900 cc2289c332eb
parent 7678 286c42d7c5ed
child 8149 681eb46b8ac4
     1.1 --- a/test/testgesture.c	Sat Nov 02 11:51:23 2013 +0100
     1.2 +++ b/test/testgesture.c	Sat Nov 02 12:07:21 2013 +0100
     1.3 @@ -205,7 +205,7 @@
     1.4    SDL_Surface *screen;
     1.5    SDL_Event event;
     1.6    SDL_bool quitting = SDL_FALSE;
     1.7 -  SDL_RWops *src;
     1.8 +  SDL_RWops *stream;
     1.9  
    1.10    /* Enable standard application logging */
    1.11    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    1.12 @@ -241,14 +241,14 @@
    1.13          SDL_RecordGesture(-1);
    1.14          break;
    1.15            case SDLK_s:
    1.16 -        src = SDL_RWFromFile("gestureSave","w");
    1.17 -        SDL_Log("Wrote %i templates",SDL_SaveAllDollarTemplates(src));
    1.18 -        SDL_RWclose(src);
    1.19 +        stream = SDL_RWFromFile("gestureSave", "w");
    1.20 +        SDL_Log("Wrote %i templates", SDL_SaveAllDollarTemplates(stream));
    1.21 +        SDL_RWclose(stream);
    1.22          break;
    1.23            case SDLK_l:
    1.24 -        src = SDL_RWFromFile("gestureSave","r");
    1.25 -        SDL_Log("Loaded: %i",SDL_LoadDollarTemplates(-1,src));
    1.26 -        SDL_RWclose(src);
    1.27 +        stream = SDL_RWFromFile("gestureSave", "r");
    1.28 +        SDL_Log("Loaded: %i", SDL_LoadDollarTemplates(-1, stream));
    1.29 +        SDL_RWclose(stream);
    1.30          break;
    1.31            case SDLK_ESCAPE:
    1.32          quitting = SDL_TRUE;