mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Cleanup
This commit is contained in:
parent
0ffa3bf196
commit
df60ca8ecd
|
@ -1,7 +1,7 @@
|
||||||
extern crate minifb;
|
extern crate minifb;
|
||||||
|
|
||||||
use minifb::{Window, Key, Scale, WindowOptions, Menu, MenuItem};
|
use minifb::{Window, Key, Scale, WindowOptions, Menu};
|
||||||
use minifb::{MENU_KEY_COMMAND, MENU_KEY_CTRL};
|
use minifb::{MENU_KEY_CTRL};
|
||||||
|
|
||||||
const WIDTH: usize = 640;
|
const WIDTH: usize = 640;
|
||||||
const HEIGHT: usize = 360;
|
const HEIGHT: usize = 360;
|
||||||
|
|
|
@ -625,8 +625,6 @@ uint64_t mfb_add_menu_item(
|
||||||
NSMenuItem* newItem = [[NSMenuItem alloc] initWithTitle:name action:@selector(onMenuPress:) keyEquivalent:@""];
|
NSMenuItem* newItem = [[NSMenuItem alloc] initWithTitle:name action:@selector(onMenuPress:) keyEquivalent:@""];
|
||||||
[newItem setTag:menu_id];
|
[newItem setTag:menu_id];
|
||||||
|
|
||||||
printf("set menu id %d\n", menu_id);
|
|
||||||
|
|
||||||
// This code may look a bit weird but is here for a reason:
|
// This code may look a bit weird but is here for a reason:
|
||||||
//
|
//
|
||||||
// In order to make it easier to bulid cross-platform apps Ctrl is often used as
|
// In order to make it easier to bulid cross-platform apps Ctrl is often used as
|
||||||
|
|
Loading…
Reference in a new issue