VirtualBox

Changeset 55898 in vbox


Ignore:
Timestamp:
May 18, 2015 9:45:59 AM (10 years ago)
Author:
vboxsync
Message:

casting non-sense.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa.c

    r51442 r55898  
    8080    pWinInfo->currentCtx = NULL;
    8181
    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;
    8783
    8884    cocoaViewCreate(&pWinInfo->window, pWinInfo, pParentWin, pVisInfo->visAttribs);
     
    9692void renderspu_SystemReparentWindow(WindowInfo *pWinInfo)
    9793{
    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;
    10395    cocoaViewReparent(pWinInfo->window, pParentWin);
    10496}
     
    114106{
    115107    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;
    122109
    123110    /*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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette