Fix missing scenario editor menus on Windows

This also seems to fix an issue with menu accelerator keys on Windows.
This commit is contained in:
2015-10-22 18:29:29 -04:00
parent aecbea01a4
commit fa928a122f
2 changed files with 2 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ void init_scened(int argc, char* argv[]) {
ImageRsrc& icon = *ResMgr::get<ImageRsrc>("icon");
mainPtr.setIcon(icon.getSize().x, icon.getSize().y, icon.copyToImage().getPixelsPtr());
#endif
init_menubar(); // This is called twice because Windows and Mac have different ordering requirements
mainPtr.clear(sf::Color::Black);
mainPtr.display();

View File

@@ -59,7 +59,7 @@ void accel_table_t::add(WORD cmd, std::string key) {
void accel_table_t::build() {
if(handle == NULL)
handle = CreateAcceleratorTable(table.data(), table.size());
handle = CreateAcceleratorTableA(table.data(), table.size());
}
void accel_table_t::destroy() {