Previous 199869 Revisions Next

r35026 Saturday 14th February, 2015 at 10:12:16 UTC by Vasantha Crabb
Fix a dumb bug, use newer interfaces
[src/osd/modules/debugger]debugosx.m
[src/osd/modules/debugger/osx]debugosxdebugview.m

trunk/src/osd/modules/debugger/debugosx.m
r243537r243538
1414//  * Automatic scrolling for console and log views
1515//  * Using alpha for disabled foreground colours doesn't really work
1616//  * New windows created from auxiliary windows should inherit focus rather than pointing at current CPU
17//  * Improve behaviour of expression history in memory and disassembly windows - the double tap is annoying
1817//  * Keyboard shortcuts in error log windows
1918//  * Don't accept keyboard input while the game is running
2019//  * Interior focus rings - standard/exterior focus rings look really ugly here
trunk/src/osd/modules/debugger/osx/debugosxdebugview.m
r243537r243538
110110                                       inTextContainer:textContainer
111111                           fractionOfDistanceThroughGlyph:&fraction];
112112      position.x = [layoutManager characterIndexForGlyphAtIndex:glyph]; // FIXME: assumes 1:1 character mapping
113      [text deleteCharactersInRange:NSMakeRange(0, length)];
113114   }
114115   if (position.x < 0)
115116      position.x = 0;
r243537r243538
397398
398399
399400- (void)mouseDown:(NSEvent *)event {
400   NSPoint   location = [self convertPoint:[event locationInWindow] fromView:nil];
401   if (view->cursor_supported()) {
402      view->set_cursor_position([self convertLocation:location]);
403      view->set_cursor_visible(true);
404      [self setNeedsDisplay:YES];
405   }
401   NSPoint const location = [self convertPoint:[event locationInWindow] fromView:nil];
402   view->process_click(DCK_LEFT_CLICK, [self convertLocation:location]);
406403}
407404
408405
409- (void)mouseDragged:(NSEvent *)event {
410   NSPoint   location = [self convertPoint:[event locationInWindow] fromView:nil];
411   if (view->cursor_supported()) {
412      [self autoscroll:event];
413      view->set_cursor_position([self convertLocation:location]);
414      [self setNeedsDisplay:YES];
415   }
416}
417
418
419406- (void)rightMouseDown:(NSEvent *)event {
420   NSPoint   location = [self convertPoint:[event locationInWindow] fromView:nil];
421   if (view->cursor_supported()) {
422      view->set_cursor_position([self convertLocation:location]);
423      view->set_cursor_visible(true);
424      [self setNeedsDisplay:YES];
425   }
407   NSPoint const location = [self convertPoint:[event locationInWindow] fromView:nil];
408   view->process_click(DCK_RIGHT_CLICK, [self convertLocation:location]);
426409   [super rightMouseDown:event];
427410}
428411


Previous 199869 Revisions Next


© 1997-2024 The MAME Team