]> granicus.if.org Git - nethack/commitdiff
NetHackW: fix rendering of animations
authorBart House <bart@barthouse.com>
Sat, 23 Jan 2021 20:04:16 +0000 (12:04 -0800)
committerBart House <bart@barthouse.com>
Sat, 23 Jan 2021 20:04:16 +0000 (12:04 -0800)
Animations render by changing map state and calling delay.  When we delay,
we must ensure map windoow has been updated to show latest state before
we delay.

win/win32/mswproc.c

index 4e675671fe3b7073ca9be105882ee65a969473de..141a4e96f50c18e1a56d6a71133c4be7d18f24d5 100644 (file)
@@ -1852,6 +1852,7 @@ void
 mswin_delay_output()
 {
     logDebug("mswin_delay_output()\n");
+    mswin_map_update(mswin_hwnd_from_winid(WIN_MAP));
     Sleep(50);
 }