- 時間撮記:
- 2016-8-5 上午12:47:28 (8 年 以前)
- 位置:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine_new
- 檔案:
-
- 修改 13 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/Makefile.kmk
r63021 r63024 44 44 # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch 45 45 # -wd4305: 'function' : truncation from 'double' to 'GLclampf' 46 TEMPLATE_VBoxGuestWineDLL_CFLAGS = $( TEMPLATE_VBOXGUESTR3NPDLL_CFLAGS) -wd4100 -wd4204 -wd4245 -wd430546 TEMPLATE_VBoxGuestWineDLL_CFLAGS = $(filter-out -WX,$(TEMPLATE_VBOXGUESTR3NPDLL_CFLAGS)) -wd4100 -wd4204 -wd4245 -wd4305 47 47 48 48 # -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/d3d9_private.h
r51270 r63024 45 45 #include "winuser.h" 46 46 #else 47 # include <windows.h>47 # include <iprt/win/windows.h> 48 48 #endif 49 49 #include "wine/debug.h" -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/texture.c
r48345 r63024 1328 1328 HRESULT hr; 1329 1329 1330 texture->IDirect3DBaseTexture9_iface.lpVtbl = ( constIDirect3DBaseTexture9Vtbl *)&d3d9_texture_2d_vtbl;1330 texture->IDirect3DBaseTexture9_iface.lpVtbl = (/*const*/ IDirect3DBaseTexture9Vtbl *)&d3d9_texture_2d_vtbl; 1331 1331 texture->refcount = 1; 1332 1332 … … 1378 1378 HRESULT hr; 1379 1379 1380 texture->IDirect3DBaseTexture9_iface.lpVtbl = ( constIDirect3DBaseTexture9Vtbl *)&d3d9_texture_cube_vtbl;1380 texture->IDirect3DBaseTexture9_iface.lpVtbl = (/*const*/ IDirect3DBaseTexture9Vtbl *)&d3d9_texture_cube_vtbl; 1381 1381 texture->refcount = 1; 1382 1382 … … 1427 1427 HRESULT hr; 1428 1428 1429 texture->IDirect3DBaseTexture9_iface.lpVtbl = ( constIDirect3DBaseTexture9Vtbl *)&d3d9_texture_3d_vtbl;1429 texture->IDirect3DBaseTexture9_iface.lpVtbl = (/*const*/ IDirect3DBaseTexture9Vtbl *)&d3d9_texture_3d_vtbl; 1430 1430 texture->refcount = 1; 1431 1431 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/vertexdeclaration.c
r48345 r63024 389 389 } 390 390 391 declaration->IDirect3DVertexDeclaration9_iface.lpVtbl = &d3d9_vertex_declaration_vtbl;391 declaration->IDirect3DVertexDeclaration9_iface.lpVtbl = (struct IDirect3DVertexDeclaration9Vtbl *)&d3d9_vertex_declaration_vtbl; 392 392 declaration->refcount = 1; 393 393 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/volume.c
r48345 r63024 294 294 HRESULT hr; 295 295 296 volume->IDirect3DVolume9_iface.lpVtbl = &d3d9_volume_vtbl;296 volume->IDirect3DVolume9_iface.lpVtbl = (struct IDirect3DVolume9Vtbl *)&d3d9_volume_vtbl; 297 297 volume->refcount = 1; 298 298 … … 318 318 if (!iface) 319 319 return NULL; 320 assert(iface->lpVtbl == ( constIDirect3DVolume9Vtbl *)&d3d9_volume_vtbl);320 assert(iface->lpVtbl == (IDirect3DVolume9Vtbl *)&d3d9_volume_vtbl); 321 321 return CONTAINING_RECORD(iface, struct d3d9_volume, IDirect3DVolume9_iface); 322 322 } -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/switcher/d3d8_main.c
r62522 r63024 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox D3D8 dll switcher … … 17 16 */ 18 17 19 #include " d3d8.h"18 #include "iprt/win/d3d8.h" 20 19 #include "switcher.h" 21 20 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/switcher/d3d9_main.c
r62522 r63024 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox D3D8 dll switcher … … 17 16 */ 18 17 19 #include " d3d9.h"18 #include "iprt/win/d3d9.h" 20 19 #include "switcher.h" 21 20 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/switcher/sw_common.c
r62522 r63024 16 16 */ 17 17 18 #include < windows.h>18 #include <iprt/win/windows.h> 19 19 #include "switcher.h" 20 20 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/switcher/switcher.h
r62522 r63024 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox D3D8/9 dll switcher -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/VBoxWineEx.h
r62522 r63024 54 54 typedef FNVBOXWINEEXD3DDEV9_CREATEVOLUMETEXTURE *PFNVBOXWINEEXD3DDEV9_CREATEVOLUMETEXTURE; 55 55 56 struct VBOXBOX3D; 57 struct VBOXPOINT3D; 56 58 typedef VBOXWINEEX_DECL(HRESULT) FNVBOXWINEEXD3DDEV9_VOLBLT(IDirect3DDevice9Ex *iface, 57 59 IDirect3DVolume9 *pSourceVolume, IDirect3DVolume9 *pDestinationVolume, -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/include/wine/wined3d.h
r48345 r63024 2486 2486 HRESULT __cdecl wined3d_device_flush_to_host(struct wined3d_device *device); 2487 2487 HRESULT __cdecl wined3d_device_finish(struct wined3d_device *device); 2488 struct VBOXPOINT3D; 2488 2489 HRESULT __cdecl wined3d_device_blt_vol(struct wined3d_device *device, struct wined3d_volume *src, struct wined3d_volume *dst, const struct wined3d_box *pSrcBoxArg, const struct VBOXPOINT3D *pDstPoin3D); 2489 2490 HRESULT __cdecl wined3d_device_blt_voltex(struct wined3d_device *device, struct wined3d_texture *src, struct wined3d_texture *dst, const struct wined3d_box *pSrcBoxArg, const struct VBOXPOINT3D *pDstPoin3D); -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/directx.c
r51270 r63024 321 321 HGLRC new_ctx; 322 322 323 if (!( gl_info->p_wglCreateContextAttribsARB = (void *)wglGetProcAddress("wglCreateContextAttribsARB")))323 if (!(*(PROC *)&gl_info->p_wglCreateContextAttribsARB = wglGetProcAddress("wglCreateContextAttribsARB"))) 324 324 return; 325 325 … … 2651 2651 static void load_gl_funcs(struct wined3d_gl_info *gl_info) 2652 2652 { 2653 #define USE_GL_FUNC(pfn) gl_info->gl_ops.ext.p_##pfn = (void *)wglGetProcAddress(#pfn);2653 #define USE_GL_FUNC(pfn) (*(PROC *)(&gl_info->gl_ops.ext.p_##pfn)) = wglGetProcAddress(#pfn); 2654 2654 GL_EXT_FUNCS_GEN; 2655 2655 #undef USE_GL_FUNC … … 2990 2990 { 2991 2991 TRACE("GL CORE: GL_EXT_texture3D support.\n"); 2992 gl_info->gl_ops.ext.p_glTexImage3DEXT = (void *)gl_info->gl_ops.ext.p_glTexImage3D;2992 *(FARPROC *)&gl_info->gl_ops.ext.p_glTexImage3DEXT = (FARPROC)gl_info->gl_ops.ext.p_glTexImage3D; 2993 2993 gl_info->gl_ops.ext.p_glTexSubImage3DEXT = gl_info->gl_ops.ext.p_glTexSubImage3D; 2994 2994 gl_info->supported[EXT_TEXTURE3D] = TRUE; … … 5324 5324 } 5325 5325 5326 pDrvValidateVersion = (void*)GetProcAddress(mod_gl, "DrvValidateVersion");5326 *(FARPROC *)&pDrvValidateVersion = GetProcAddress(mod_gl, "DrvValidateVersion"); 5327 5327 if(!pDrvValidateVersion) { 5328 5328 ERR("Can't get DrvValidateVersion\n"); … … 5336 5336 } 5337 5337 5338 # define VBOX_USE_FUNC(f) p##f = (void *)GetProcAddress(mod_gl, #f);5338 # define VBOX_USE_FUNC(f) (*(FARPROC *)&(p##f)) = GetProcAddress(mod_gl, #f); 5339 5339 VBOX_GL_FUNCS_GEN 5340 5340 # undef VBOX_USE_FUNC 5341 5341 # endif 5342 # define USE_GL_FUNC(f) gl_info->gl_ops.gl.p_##f = (void *)GetProcAddress(mod_gl, #f);5342 # define USE_GL_FUNC(f) (*(FARPROC *)&(gl_info->gl_ops.gl.p_##f)) = GetProcAddress(mod_gl, #f); 5343 5343 ALL_WGL_FUNCS 5344 5344 # undef USE_GL_FUNC -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/vboxsharedrc.h
r62522 r63024 1 1 /* $Id$ */ 2 2 /** @file 3 *4 3 * VBox extension to Wine D3D - shared resource 5 * 4 */ 5 6 /* 6 7 * Copyright (C) 2010-2016 Oracle Corporation 7 8 * … … 14 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 15 16 */ 17 16 18 #ifndef ___vboxsharedrc_h___ 17 19 #define ___vboxsharedrc_h___ … … 21 23 22 24 #define VBOXSHRC_GET_SHAREFLAFS(_o) ((_o)->resource.sharerc_flags) 23 #define VBOXSHRC_GET_SHAREHANDLE(_o) ((HANDLE)( _o)->resource.sharerc_handle)24 #define VBOXSHRC_SET_SHAREHANDLE(_o, _h) ((_o)->resource.sharerc_handle = (DWORD)( _h))25 #define VBOXSHRC_GET_SHAREHANDLE(_o) ((HANDLE)(uintptr_t)(_o)->resource.sharerc_handle) 26 #define VBOXSHRC_SET_SHAREHANDLE(_o, _h) ((_o)->resource.sharerc_handle = (DWORD)(uintptr_t)(_h)) 25 27 #define VBOXSHRC_COPY_SHAREDATA(_oDst, _oSrc) do { \ 26 28 VBOXSHRC_GET_SHAREFLAFS(_oDst) = VBOXSHRC_GET_SHAREFLAFS(_oSrc); \
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器