Changeset 238 for trunk/orca
- Timestamp:
- 07/28/06 00:44:39 (2 years ago)
- Location:
- trunk/orca/gl/glv/mac
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/gl/glv/mac/glv.c
r1 r238 377 377 GLint swap = 1; 378 378 379 #if 0 380 // Deprecated in Mac OS X v10.4 379 381 GrafPtr portSave = NULL; 380 382 GetPort( &portSave ); 381 383 SetPort( (GrafPtr) GetWindowPort(view->window) ); 384 #endif 382 385 383 386 if( ! aglSetDrawable(view->ctx, GetWindowPort(view->window)) ) … … 408 411 #endif 409 412 413 #if 0 410 414 // Ensure we know when display configs are changed. 411 415 view->windowEDMUPP = NewDMExtendedNotificationUPP(handleWindowDMEvent); … … 414 418 415 419 SetPort( portSave ); 420 #endif 416 421 } 417 422 … … 422 427 static void disposeGL( GLView* view ) 423 428 { 429 #if 0 424 430 if( view->windowEDMUPP ) 425 431 { … … 427 433 view->windowEDMUPP = NULL; 428 434 } 435 #endif 429 436 430 437 aglSetCurrentContext( NULL ); … … 540 547 //glv_makeCurrent( view ); 541 548 542 InitCursor();543 544 549 RepositionWindow( view->window, NULL, kWindowCenterOnMainScreen ); 545 550 return( view ); … … 865 870 if( on ) 866 871 { 867 ShowCursor();872 CGDisplayShowCursor( kCGDirectMainDisplay ); 868 873 } 869 874 else 870 875 { 871 876 // TODO: Every call to HideCursor should be balanced with a ShowCursor. 872 HideCursor();877 CGDisplayHideCursor( kCGDirectMainDisplay ); 873 878 } 874 879 } -
trunk/orca/gl/glv/mac/glv.h
r1 r238 52 52 Rect bound; 53 53 EventHandlerUPP windowEventUUP; 54 DMExtendedNotificationUPP windowEDMUPP;54 //DMExtendedNotificationUPP windowEDMUPP; 55 55 } GLView; 56 56
