From d6ae801203add9457355b73071ce3852b27a3da4 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 23 Jun 2024 23:22:12 -0600 Subject: [PATCH] fix #368 --- src/game/boe.graphics.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/boe.graphics.cpp b/src/game/boe.graphics.cpp index d0e5c9c9..3a715510 100644 --- a/src/game/boe.graphics.cpp +++ b/src/game/boe.graphics.cpp @@ -173,6 +173,11 @@ void adjust_window_mode() { mainPtr.setIcon(icon->getSize().x, icon->getSize().y, icon->copyToImage().getPixelsPtr()); #endif +#ifdef SFML_SYSTEM_WINDOWS + // On windows, the file dialogs are constructed with mainPtr as a parent, + // so they need to be reconstructed after mainPtr is. + init_fileio(); +#endif init_menubar(); showMenuBar(); }