Fixed button-mouse area bug

This commit is contained in:
mathusummut
2018-06-21 21:20:09 +02:00
parent c15488a212
commit 656816084c
3 changed files with 9 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ namespace Glest {
displayX = 800;
displayY = 250;
displayW = 128;
displayW = 160;
displayH = 480;
}

View File

@@ -457,7 +457,7 @@ namespace MapEditor {
currentFile = fname;
fileName = cutLastExt(extractFileFromDirectoryPath(fname.c_str()));
fileDialog->SetPath(ToUnicode(fname));
SetTitle(ToUnicode(winHeader + "; " + fname));
SetTitle(ToUnicode(winHeader + " - " + fname));
} else
SetTitle(ToUnicode(winHeader));
//setDirty(false);
@@ -534,7 +534,7 @@ namespace MapEditor {
//currentFile = fname;
fileName = cutLastExt(extractFileFromDirectoryPath(currentFile.c_str()));
fileDialog->SetPath(ToUnicode(currentFile));
SetTitle(ToUnicode(winHeader + "; " + currentFile));
SetTitle(ToUnicode(winHeader + " - " + currentFile));
} else
SetTitle(ToUnicode(winHeader));
@@ -749,7 +749,7 @@ namespace MapEditor {
fileName = cutLastExt(extractFileFromDirectoryPath(currentFile.c_str()));
setDirty(false);
setExtension();
SetTitle(ToUnicode(winHeader + "; " + currentFile));
SetTitle(ToUnicode(winHeader + " - " + currentFile));
}
} catch (const string &e) {
MsgDialog(this, ToUnicode(e), wxT("Exception"), wxOK | wxICON_ERROR).ShowModal();
@@ -824,7 +824,7 @@ namespace MapEditor {
fileName = cutLastExt(extractFileFromDirectoryPath(currentFile.c_str()));
setDirty(false);
}
SetTitle(ToUnicode(winHeader + "; " + currentFile));
SetTitle(ToUnicode(winHeader + " - " + currentFile));
}
void MainWindow::onMenuFileExit(wxCommandEvent &event) {

View File

@@ -197,7 +197,10 @@ namespace Shared {
//sleep(100);
MutexSafeWrapper safeMutex(cleanupThreadMutex.get());
try {
cleanupThread.reset(0);
} catch (...) {
}
//printf("In Thread::shutdownThreads Line: %d\n",__LINE__);
}
}