Changeset 55898 in vbox
- Timestamp:
- May 18, 2015 9:45:59 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa.c
r51442 r55898 80 80 pWinInfo->currentCtx = NULL; 81 81 82 #ifdef __LP64__ 83 NativeNSViewRef pParentWin = (NativeNSViewRef)render_spu_parent_window_id; 84 #else /* __LP64__ */ 85 NativeNSViewRef pParentWin = (NativeNSViewRef)(uint32_t)render_spu_parent_window_id; 86 #endif /* __LP64__ */ 82 NativeNSViewRef pParentWin = (NativeNSViewRef)(uintptr_t)render_spu_parent_window_id; 87 83 88 84 cocoaViewCreate(&pWinInfo->window, pWinInfo, pParentWin, pVisInfo->visAttribs); … … 96 92 void renderspu_SystemReparentWindow(WindowInfo *pWinInfo) 97 93 { 98 #ifdef __LP64__ 99 NativeNSViewRef pParentWin = (NativeNSViewRef)render_spu_parent_window_id; 100 #else /* __LP64__ */ 101 NativeNSViewRef pParentWin = (NativeNSViewRef)(uint32_t)render_spu_parent_window_id; 102 #endif /* __LP64__ */ 94 NativeNSViewRef pParentWin = (NativeNSViewRef)(uintptr_t)render_spu_parent_window_id; 103 95 cocoaViewReparent(pWinInfo->window, pParentWin); 104 96 } … … 114 106 { 115 107 CRASSERT(pWinInfo); 116 117 #ifdef __LP64__ 118 NativeNSViewRef pParentWin = (NativeNSViewRef)render_spu_parent_window_id; 119 #else /* __LP64__ */ 120 NativeNSViewRef pParentWin = (NativeNSViewRef)(uint32_t)render_spu_parent_window_id; 121 #endif /* __LP64__ */ 108 NativeNSViewRef pParentWin = (NativeNSViewRef)(uintptr_t)render_spu_parent_window_id; 122 109 123 110 /*pParentWin is unused in the call, otherwise it might hold incorrect value if for ex. last reparent call was for
Note:
See TracChangeset
for help on using the changeset viewer.