ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/EmulatorView.mm
(Generate patch)

Comparing BasiliskII/src/MacOSX/EmulatorView.mm (file contents):
Revision 1.12 by cebix, 2004-01-12T15:29:24Z vs.
Revision 1.13 by nigel, 2004-01-29T12:10:47Z

# Line 378 | Line 378 | static NSPoint mouse;                  // Previous/curr
378  
379   - (BOOL) processMouseMove: (NSEvent *) event
380   {
381 <        NSPoint location;
381 >        if ( ! drawView )
382 >        {
383 >                D(NSLog(@"Unable to process event - Emulator has not started yet"));
384 >                return NO;
385 >        }
386  
387          if ( fullScreen )
388          {
# Line 386 | Line 390 | static NSPoint mouse;                  // Previous/curr
390                  return YES;
391          }
392  
393 <        location = [self convertPoint: [event locationInWindow] fromView:nil];
393 >        NSPoint location = [self convertPoint: [event locationInWindow] fromView:nil];
394  
395          D(NSLog (@"%s - loc.x=%f, loc.y=%f",
396                                  __PRETTY_FUNCTION__, location.x, location.y));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines