Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.m
changeset 1028:f99eeaf084c2
prev1019:87f191f92f8f
next1036:af7b0c5905dd
author nkeynes
date Sun Jun 14 11:44:19 2009 +0000 (10 years ago)
permissions -rw-r--r--
last change Add fullscreen support
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoaui.m Wed Jun 03 10:29:16 2009 +0000
1.2 +++ b/src/cocoaui/cocoaui.m Sun Jun 14 11:44:19 2009 +0000
1.3 @@ -149,6 +149,8 @@
1.4 [fileMenu addItem: [NSMenuItem separatorItem]];
1.5 [fileMenu addItemWithTitle: NSMENU_("_Load State...") action: @selector(load_action:) keyEquivalent: @"o"];
1.6 [fileMenu addItemWithTitle: NSMENU_("_Save State...") action: @selector(save_action:) keyEquivalent: @"s"];
1.7 + [fileMenu addItem: [NSMenuItem separatorItem]];
1.8 + [fileMenu addItemWithTitle: NSMENU_("_Full Screen...") action: @selector(fullscreen_action:) keyEquivalent: @"\r"];
1.9
1.10 menuItem = [[NSMenuItem alloc] initWithTitle:NSMENU_("_File") action: nil keyEquivalent: @""];
1.11 [menuItem setSubmenu: fileMenu];
1.12 @@ -280,6 +282,10 @@
1.13 {
1.14 gdrom_list_set_selection( [sender tag] );
1.15 }
1.16 +- (void) fullscreen_action: (id)sender
1.17 +{
1.18 + [mainWindow setFullscreen: ![mainWindow isFullscreen]];
1.19 +}
1.20 @end
1.21
1.22
1.23 @@ -314,7 +320,9 @@
1.24 [NSApp activateIgnoringOtherApps: YES];
1.25
1.26 register_gdrom_disc_change_hook( cocoa_gui_disc_changed, mainWindow );
1.27 -
1.28 + if( withFullscreen ) {
1.29 + [mainWindow setFullscreen: YES];
1.30 + }
1.31 [pool release];
1.32 return TRUE;
1.33 }
.