Skip to content

Commit

Permalink
Change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Dec 18, 2023
1 parent aa1d8c7 commit 77c7e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/native_dialog/android_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ bool _al_show_native_file_dialog(ALLEGRO_DISPLAY *display, ALLEGRO_NATIVE_DIALOG
bool ret = open_file_chooser(fd->flags, patterns, initial_path, &fd->fc_paths, &fd->fc_path_count);
ALLEGRO_DEBUG("done waiting for the file chooser");

/* wait some more before we return */
/* wait some more before we return - for predictable behavior */
if (dpy != NULL) {
ALLEGRO_DISPLAY_ANDROID *d = (ALLEGRO_DISPLAY_ANDROID *)dpy;
ALLEGRO_TIMEOUT timeout;
ALLEGRO_EVENT event;

memset(&event, 0, sizeof(event));

wait_start:
wait:

/* wait for ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING */
ALLEGRO_DEBUG("waiting for ALLEGRO_EVENT_DISPLAY_RESUME_DRAWING");
Expand Down Expand Up @@ -123,7 +123,7 @@ bool _al_show_native_file_dialog(ALLEGRO_DISPLAY *display, ALLEGRO_NATIVE_DIALOG
al_init_timeout(&timeout, 0.5);
while (al_wait_for_event_until(queue, &event, &timeout)) {
if (event.type == ALLEGRO_EVENT_DISPLAY_HALT_DRAWING)
goto wait_start;
goto wait;
}
ALLEGRO_DEBUG("done waiting for another ALLEGRO_EVENT_DISPLAY_HALT_DRAWING");

Expand Down

0 comments on commit 77c7e30

Please sign in to comment.