Fix preset creatures not showing up on Windows
This commit is contained in:
@@ -467,7 +467,7 @@ void load_spec_graphics(fs::path scen_file) {
|
||||
static const char*const noGraphics = "The game will still work without the custom graphics, but some things will not look right.";
|
||||
short i;
|
||||
fs::path path(scen_file);
|
||||
printf("Loading scenario graphics... (%s)\n",path.c_str());
|
||||
printf("Loading scenario graphics... (%s)\n",path.string().c_str());
|
||||
// Tried path.replace_extension, but that only deleted the extension, so I have to do it manually
|
||||
std::string filename = path.stem().string();
|
||||
path = path.parent_path();
|
||||
|
@@ -231,7 +231,7 @@ ModalSession::ModalSession(sf::Window& win, sf::Window& p) : parent(&p) {
|
||||
ModalSession::~ModalSession() {
|
||||
HWND win_handle = (HWND)session;
|
||||
EnableWindow(parent->getSystemHandle(), true);
|
||||
makeFrontWindow(parent);
|
||||
makeFrontWindow(*parent);
|
||||
RedrawWindow(parent->getSystemHandle(), NULL, NULL, RDW_NOCHILDREN | RDW_UPDATENOW);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user