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 | ||
---|---|---|
216 | 216 | show_buffer(buf, skip, nibbles, CH_XOFF, XRES, zoom, pos); |
217 | 217 | update(); |
218 | 218 | |
219 | do { | |
219 | while (1) { | |
220 | 220 | SDL_WaitEvent(&event); |
221 | 221 | switch (event.type) { |
222 | 222 | case SDL_KEYDOWN: |
... | ... | |
242 | 242 | default: |
243 | 243 | continue; |
244 | 244 | } |
245 | break; | |
245 | 246 | } |
246 | while (0); | |
247 | 247 | } |
248 | 248 | } |
Branches:
master