mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
commit
6492028bb2
26 changed files with 79 additions and 52 deletions
|
|
@ -160,7 +160,7 @@ void PopupMenu::createPlatformMenu()
|
|||
mData->mMenu = mIsPopup ? CreatePopupMenu() : CreateMenu();
|
||||
AssertFatal(mData->mMenu, "Unable to create menu");
|
||||
|
||||
MENUINFO mi;
|
||||
MENUINFO mi = { 0 };
|
||||
mi.cbSize = sizeof(mi);
|
||||
mi.fMask = MIM_MENUDATA;
|
||||
mi.dwMenuData = (ULONG_PTR)this;
|
||||
|
|
@ -178,7 +178,7 @@ S32 PopupMenu::insertItem(S32 pos, const char *title, const char* accelerator, c
|
|||
if(isAttached && pWindow == NULL)
|
||||
return -1;
|
||||
|
||||
MENUITEMINFOA mi;
|
||||
MENUITEMINFOA mi = { 0 };
|
||||
mi.cbSize = sizeof(mi);
|
||||
mi.fMask = MIIM_ID|MIIM_TYPE;
|
||||
mi.wID = (mData->mMenuID * PlatformPopupMenuData::PopupMenuIDRange) + mData->mLastID + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue