Date:2010-11-09 00:24:59 (13 years 4 months ago)
Author:Werner Almesberger
Commit:e3bae73a5e61a721839118dbccabb61117b6b16a
Message:atspi-rssi/gui.c (gui): exit on keystroke or quit request

Files: tools/atspi-rssi/gui.c (2 diffs)

Change Details

tools/atspi-rssi/gui.c
112112{
113113    SDL_Surface *surf;
114114    int z[N_CHAN*N_TIME];
115    SDL_Event event;
115116
116117    memset(z, 0, sizeof(z));
117118    gettimeofday(&t0, NULL);
...... 
129130    }
130131
131132    while (1) {
133        while (SDL_PollEvent(&event))
134            if (event.type == SDL_KEYDOWN ||
135                event.type == SDL_QUIT)
136                return;
137
132138        shift_grid(z, N_CHAN, N_TIME);
133139        sweep(dsc, z);
134140

Archive Download the corresponding diff file



interactive