Fix preset creatures not showing up on Windows

This commit is contained in:
2015-01-07 18:30:30 -05:00
parent 38f398caa5
commit 095ab3be49
6 changed files with 4 additions and 10 deletions

View File

@@ -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();

View File

@@ -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);
}