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

Comparing BasiliskII/src/MacOSX/Controller.mm (file contents):
Revision 1.6 by nigel, 2003-01-10T23:01:48Z vs.
Revision 1.7 by nigel, 2003-03-11T11:31:01Z

# Line 193 | Line 193
193                                    type: (NSEventType)type                              
194   {
195          EmulatorView    *view;
196 +        BOOL                    fullScreen;
197  
198   #ifdef ENABLE_MULTIPLE
199          // We need to work out what window's Emulator should receive these messages
# Line 204 | Line 205
205          {
206                  theEmulator = [emulators objectAtIndex: tmp];
207                  view = [theEmulator screen];
208 +                fullScreen = [view isFullScreen];
209  
210                  if ( [theEmulator isRunning] &&
211 <                                ( [[theEmulator window] isMainWindow] || [view isFullScreen] ) )
211 >                                ( fullScreen || [[theEmulator window] isMainWindow] ) )
212                          break;
213          }
214          
215          if ( tmp < [emulators count] )          // i.e. if we exited the for loop
216   #else
217          view = [theEmulator screen];
218 +        fullScreen = [view isFullScreen];
219  
220          if ( [theEmulator isRunning] &&
221 <                                ( [[theEmulator window] isMainWindow] || [view isFullScreen] ) )
221 >                                ( fullScreen || [[theEmulator window] isMainWindow] ) )
222   #endif
223          {
224 <                if ( [view mouseInView: event] )
224 >                if ( fullScreen || [view mouseInView: event] )
225                  {
226                          switch ( type )
227                          {
# Line 230 | Line 233
233                                          break;
234                                  case NSLeftMouseDragged:
235                                  case NSMouseMoved:
236 <                                        [view processMouseMove: event];
236 >                                        if ( fullScreen )
237 >                                                [view fullscreenMouseMove];
238 >                                        else
239 >                                                [view processMouseMove: event];
240                                          break;
241                                  default:
242                                          [super sendEvent: event];               // NSApplication default

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines