Previous 199869 Revisions Next

r37057 Thursday 9th April, 2015 at 22:34:17 UTC by Jonathan Gevaryahu
Merge branch 'master' of https://github.com/mamedev/mame
[src/osd/modules/debugger/osx]debugconsole.m
[src/osd/sdl]aueffectutil.m

trunk/src/osd/modules/debugger/osx/debugconsole.m
r245568r245569
132132   [window makeFirstResponder:commandField];
133133
134134   // calculate the optimal size for everything
135   NSRect   available = [[NSScreen mainScreen] visibleFrame];
136   NSRect   windowFrame = [window frame];
137   NSSize   regCurrent = [regScroll frame].size;
138   NSSize   regSize = [NSScrollView frameSizeForContentSize:[regView maximumFrameSize]
139                             hasHorizontalScroller:YES
140                              hasVerticalScroller:YES
141                                     borderType:[regScroll borderType]];
142   NSSize   dasmCurrent = [dasmScroll frame].size;
143   NSSize   dasmSize = [NSScrollView frameSizeForContentSize:[dasmView maximumFrameSize]
144                             hasHorizontalScroller:YES
145                              hasVerticalScroller:YES
146                                     borderType:[dasmScroll borderType]];
147   NSSize   consoleCurrent = [consoleContainer frame].size;
148   NSSize   consoleSize = [NSScrollView frameSizeForContentSize:[consoleView maximumFrameSize]
149                                hasHorizontalScroller:YES
150                                 hasVerticalScroller:YES
151                                        borderType:[consoleScroll borderType]];
152   NSSize   adjustment;
135   NSRect const   available = [[NSScreen mainScreen] visibleFrame];
136   NSSize const   regCurrent = [regScroll frame].size;
137   NSSize const   regSize = [NSScrollView frameSizeForContentSize:[regView maximumFrameSize]
138                                   hasHorizontalScroller:YES
139                                    hasVerticalScroller:YES
140                                           borderType:[regScroll borderType]];
141   NSSize const   dasmCurrent = [dasmScroll frame].size;
142   NSSize const   dasmSize = [NSScrollView frameSizeForContentSize:[dasmView maximumFrameSize]
143                                   hasHorizontalScroller:YES
144                                    hasVerticalScroller:YES
145                                           borderType:[dasmScroll borderType]];
146   NSSize const   consoleCurrent = [consoleContainer frame].size;
147   NSSize         consoleSize = [NSScrollView frameSizeForContentSize:[consoleView maximumFrameSize]
148                                      hasHorizontalScroller:YES
149                                       hasVerticalScroller:YES
150                                              borderType:[consoleScroll borderType]];
151   NSRect         windowFrame = [window frame];
152   NSSize         adjustment;
153153
154154   consoleSize.width += consoleCurrent.width - [consoleScroll frame].size.width;
155155   consoleSize.height += consoleCurrent.height - [consoleScroll frame].size.height;
trunk/src/osd/sdl/aueffectutil.m
r245568r245569
306306
307307   [self loadEffectUI];
308308   if (nil != restoreFrame)
309   {
309310      [window setFrameFromString:restoreFrame];
311   }
312   else
313   {
314      NSRect const available = [[NSScreen mainScreen] visibleFrame];
315      NSRect frame = [window frame];
316      frame.origin.x = (NSWidth(available) - NSWidth(frame)) / 4;
317      frame.origin.y = (NSHeight(available) - NSHeight(frame)) * 3 / 4;
318      [window setFrame:frame display:YES animate:NO];
319   }
310320}
311321
312322- (BOOL)readFromData:(NSData *)data ofType:(NSString *)type error:(NSError **)error {
r245568r245569
836846   item = [parent addItemWithTitle:@"Help" action:NULL keyEquivalent:@""];
837847   [parent setSubmenu:menu forItem:item];
838848   [menu release];
839   [NSApp setHelpMenu:menu];
849   [menu setValue:@"NSHelpMenu" forKey:@"name"];
850   if ([NSApp respondsToSelector:@selector(setHelpMenu:)])
851      [NSApp performSelector:@selector(setHelpMenu:) withObject:menu];
840852
841853   item = [menu addItemWithTitle:[NSString stringWithFormat:@"%@ Help", appName] action:@selector(showHelp:) keyEquivalent:@"?"];
842854}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team