Changeset 17022 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Feb 23, 2009 2:06:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_agl.c
r15532 r17022 10 10 11 11 #include <iprt/time.h> 12 #include <iprt/assert.h> 12 13 13 14 #include <stdio.h> … … 36 37 }; 37 38 38 #define renderspuSetWindowContext(w, c) \ 39 #ifdef __LP64__ /** @todo port to 64-bit darwin. */ 40 # define renderspuSetWindowContext(w, c) \ 41 AssertFailed() 42 # define renderspuGetWindowContext(w) \ 43 ( (ContextInfo *) GetWRefCon( ((w)->nativeWindow ? (w)->nativeWindow : (w)->window) ) ) 44 #else 45 # define renderspuSetWindowContext(w, c) \ 39 46 ( SetWRefCon( (w), (unsigned long) (c) ) ) 40 # define renderspuGetWindowContext(w) \47 # define renderspuGetWindowContext(w) \ 41 48 ( (ContextInfo *) GetWRefCon( ((w)->nativeWindow ? (w)->nativeWindow : (w)->window) ) ) 49 #endif 42 50 43 51 /* Debug macros */ … … 88 96 switch (kind) { 89 97 case kEventWindowActivated: 98 #ifndef __LP64__ /* not available for 64-bit processes? */ 90 99 case kEventWindowDrawContent: 100 #endif 91 101 break; 92 102 93 103 case kEventWindowClose: 94 104 HideWindow( window ); 105 #ifdef __LP64__ /** @todo port to 64-bit darwin. */ 106 #else 95 107 SetWRefCon( window, (int)NULL ); 108 #endif 96 109 97 110 crWarning( "Render SPU: caught kEventWindowClose -- quitting." ); … … 100 113 case kEventWindowShown: 101 114 /* build gl */ 115 #ifndef __LP64__ /** @todo port to 64-bit darwin! Need to cehck if this event is generated or not (it probably isn't). */ 102 116 if( window == FrontWindow() ) 103 117 SetUserFocusWindow( window ); 104 118 InvalWindowRect( window, &rectPort ); 119 #endif 105 120 break; 106 121 … … 276 291 } 277 292 AGLDrawable drawable; 293 #ifdef __LP64__ /** @todo port to 64-bit darwin. */ 294 drawable = NULL; 295 #else 278 296 drawable = (AGLDrawable) GetWindowPort(window); 297 #endif 279 298 /* New global buffer name */ 280 299 wi->bufferName = gCurrentBufferName++; … … 292 311 293 312 oldDrawable = render_spu.ws.aglGetDrawable(context->context); 313 #ifdef __LP64__ /** @todo port to 64-bit darwin. */ 314 newDrawable = oldDrawable; 315 #else 294 316 newDrawable = (AGLDrawable) GetWindowPort(window); 317 #endif 295 318 /* Only switch the context if the drawable has changed */ 296 319 if (oldDrawable != newDrawable) … … 304 327 CHECK_AGL_RC (result, "Render SPU: SetInteger Failed"); 305 328 /* Set the new drawable */ 329 #ifdef __LP64__ /** @todo port to 64-bit darwin. */ 330 result = -1; 331 #else 306 332 result = render_spu.ws.aglSetDrawable(context->context, newDrawable); 333 #endif 307 334 CHECK_AGL_RC (result, "Render SPU: SetDrawable Failed"); 308 335 renderspuSetWindowContext( window, context ); … … 408 435 OSStatus status = noErr; 409 436 HISize s; 437 #ifdef __LP64__ /** @todo port to 64-bit darwin. */ 438 status = -1; 439 #else 410 440 status = GetWindowResizeLimits (window->window, NULL, &s); 441 #endif 411 442 CHECK_CARBON_RC_RETURN_VOID (status, "Render SPU: GetWindowResizeLimits Failed"); 412 443 … … 648 679 SendWindowGroupBehind (gParentGroup, gMasterGroup); 649 680 /* and set the gParentGroup as parent for gMasterGroup. */ 681 #ifdef __LP64__ /** @todo port to 64-bit darwin. */ 682 #else 650 683 SetWindowGroupParent (gMasterGroup, gParentGroup); 684 #endif 651 685 } 652 686
Note:
See TracChangeset
for help on using the changeset viewer.