diff --git a/ubb-la/gui.c b/ubb-la/gui.c index 5c7a7c2..0c0f3f7 100644 --- a/ubb-la/gui.c +++ b/ubb-la/gui.c @@ -216,7 +216,7 @@ void gui(const uint8_t *buf, int skip, int nibbles) show_buffer(buf, skip, nibbles, CH_XOFF, XRES, zoom, pos); update(); - do { + while (1) { SDL_WaitEvent(&event); switch (event.type) { case SDL_KEYDOWN: @@ -242,7 +242,7 @@ void gui(const uint8_t *buf, int skip, int nibbles) default: continue; } + break; } - while (0); } }