From 3736752e7ccb950dc69e2d81391475c49610465d Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Tue, 2 Mar 2021 07:04:03 -0500 Subject: [PATCH] SDL2 client: force UI refresh when turn ends Fix some dialogues not showning up when player's turn ends. See osdn #41683 --- client/gui-sdl2/mapview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/gui-sdl2/mapview.c b/client/gui-sdl2/mapview.c index b0048a5f5d..d7b764182d 100644 --- a/client/gui-sdl2/mapview.c +++ b/client/gui-sdl2/mapview.c @@ -955,6 +955,8 @@ void redraw_unit_info_label(struct unit_list *punitlist) alphablit(buf_surf, NULL, info_window->dst->surface, &area, 255); FREESURFACE(buf_surf); FREEUTF8STR(pstr); + /* fix the bug of child dialogues not showing up when player's turn ends */ + flush_all(); } } -- 2.26.2