Date:2013-01-31 00:37:42 (11 years 1 month ago)
Author:Werner Almesberger
Commit:12a1808e09915c9dfaeebdd3d4b91f104909d6f9
Message:ubb-la/gui.c (gui): fix the event loop to properly ignore unrecognized events

Files: ubb-la/gui.c (2 diffs)

Change Details

ubb-la/gui.c
216216        show_buffer(buf, skip, nibbles, CH_XOFF, XRES, zoom, pos);
217217        update();
218218
219        do {
219        while (1) {
220220            SDL_WaitEvent(&event);
221221            switch (event.type) {
222222            case SDL_KEYDOWN:
...... 
242242            default:
243243                continue;
244244            }
245            break;
245246        }
246        while (0);
247247    }
248248}

Archive Download the corresponding diff file

Branches:
master



interactive