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:
@@ -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();
|
||||
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user