--- BasiliskII/src/MacOSX/EmulatorView.mm 2003/04/02 00:37:34 1.11 +++ BasiliskII/src/MacOSX/EmulatorView.mm 2008/01/01 09:40:32 1.16 @@ -1,9 +1,9 @@ /* * EmulatorView.mm - Custom NSView for Basilisk II windowed graphics output * - * $Id: EmulatorView.mm,v 1.11 2003/04/02 00:37:34 nigel Exp $ + * $Id: EmulatorView.mm,v 1.16 2008/01/01 09:40:32 gbeauche Exp $ * - * Basilisk II (C) 1997-2003 Christian Bauer + * Basilisk II (C) 1997-2008 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -232,7 +232,7 @@ static int prevFlags; if ( ! b ) { - ErrorAlert("Could not allocate an NSBitmapImageRep for the TIFF"); + ErrorAlert("Could not allocate an NSBitmapImageRep for the TIFF\nTry setting the emulation to millions of colours?"); return nil; } @@ -378,7 +378,11 @@ static NSPoint mouse; // Previous/curr - (BOOL) processMouseMove: (NSEvent *) event { - NSPoint location; + if ( ! drawView ) + { + D(NSLog(@"Unable to process event - Emulator has not started yet")); + return NO; + } if ( fullScreen ) { @@ -386,7 +390,7 @@ static NSPoint mouse; // Previous/curr return YES; } - location = [self convertPoint: [event locationInWindow] fromView:nil]; + NSPoint location = [self convertPoint: [event locationInWindow] fromView:nil]; D(NSLog (@"%s - loc.x=%f, loc.y=%f", __PRETTY_FUNCTION__, location.x, location.y));