mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-09 18:41:32 +11:00
Some more cleanup
This commit is contained in:
parent
df60ca8ecd
commit
8f687c58db
|
@ -34,7 +34,9 @@ fn main() {
|
|||
sub.add_item("Color 2", COLOR_2_ID).shortcut(Key::F7, 0).build();
|
||||
|
||||
menu.add_item("Menu Test", MENU_TEST_ID).shortcut(Key::W, MENU_KEY_CTRL).build();
|
||||
|
||||
menu.add_separator();
|
||||
|
||||
menu.add_item("Other Menu", OTHER_MENU_ID).shortcut(Key::W, MENU_KEY_CTRL).build();
|
||||
menu.add_item("Remove Menu", CLOSE_MENU_ID).shortcut(Key::R, 0).build();
|
||||
|
||||
|
|
|
@ -610,9 +610,7 @@ uint64_t mfb_add_menu_item(
|
|||
{
|
||||
NSMenu* menu = (NSMenu*)in_menu;
|
||||
|
||||
const char* t = strdup(item_name);
|
||||
|
||||
NSString* name = [NSString stringWithUTF8String: t];
|
||||
NSString* name = [NSString stringWithUTF8String: item_name];
|
||||
|
||||
if (menu_id == -1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue