Changeset 63021 in vbox
- Timestamp:
- Aug 4, 2016 11:43:05 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine_new
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/Makefile.kmk
r62522 r63021 40 40 41 41 TEMPLATE_VBoxGuestWineDLL_DEFS.x86 = __i386__ 42 # -wd4100: unreferenced format parameter 43 # -wd4204: nonstandard extension used : non-constant initializer 44 # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch 45 # -wd4305: 'function' : truncation from 'double' to 'GLclampf' 46 TEMPLATE_VBoxGuestWineDLL_CFLAGS = $(TEMPLATE_VBOXGUESTR3NPDLL_CFLAGS) -wd4100 -wd4204 -wd4245 -wd4305 42 47 43 48 # … … 52 57 #TEMPLATE_VBoxGuestWineD3DxDLL_INCS.x86 = vbox/libWineStub/include 53 58 TEMPLATE_VBoxGuestWineD3DxDLL_DEFS = VBOX_WINE_WITH_IPRT 59 TEMPLATE_VBoxGuestWineD3DxDLL_CFLAGS = -wd4100 -wd4204 -wd4245 -wd4305 54 60 TEMPLATE_VBoxGuestWineD3DxDLL_LIBS = \ 55 61 $(VBOX_LIB_IPRT_GUEST_R3) \ -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8/d3d8_private.h
r48345 r63021 39 39 #define NONAMELESSSTRUCT 40 40 #define COBJMACROS 41 #ifndef VBOX 41 42 #include "windef.h" 42 43 #include "winbase.h" 43 44 #include "wingdi.h" 44 45 #include "wine/debug.h" 46 #else 47 # include <iprt/win/windows.h> 48 #endif 45 49 #include "d3d8.h" 46 50 #include "wine/wined3d.h" -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/debug.c
r46521 r63021 28 28 */ 29 29 30 #ifdef VBOX 31 #include <iprt/win/windows.h> 32 #else 30 33 #include <windows.h> 34 #endif 31 35 32 36 #include "config.h" … … 161 165 for (i = 0; i < sizeof(debug_classes)/sizeof(debug_classes[0]); i++) 162 166 { 163 int len = strlen(debug_classes[i]);167 int len = (int)strlen(debug_classes[i]); 164 168 if (len != (p - opt)) continue; 165 169 if (!memcmp( opt, debug_classes[i], len )) /* found it */ … … 299 303 int interlocked_xchg_add( int *dest, int incr ) 300 304 { 301 return InterlockedExchangeAdd( dest, incr);305 return InterlockedExchangeAdd((LONG *)dest, incr); 302 306 } 303 307 … … 327 331 static const char *default_dbgstr_an( const char *str, int n ) 328 332 { 329 static const char hex[16 ] = "0123456789abcdef";333 static const char hex[16+1] = "0123456789abcdef"; 330 334 char *dst, *res; 331 335 size_t size; … … 338 342 return res; 339 343 } 340 if (n == -1) n = strlen(str);344 if (n == -1) n = (int)strlen(str); 341 345 if (n < 0) n = 0; 342 346 size = 10 + min( 300, n * 4 ); -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/context.c
r51313 r63021 1342 1342 1343 1343 #if defined(VBOX_WINE_WITH_SINGLE_CONTEXT) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT) 1344 void context_clear_on_thread_detach( )1344 void context_clear_on_thread_detach(void) 1345 1345 { 1346 1346 /* In theory, we should do context_set_current(NULL) here, -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/vboxext.h
r62522 r63021 1 1 /* $Id$ */ 2 2 /** @file 3 *4 3 * VBox extension to Wine D3D 5 * 4 */ 5 6 /* 6 7 * Copyright (C) 2011-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 ___VBOXEXT_H__ 17 19 #define ___VBOXEXT_H__ 18 20 19 21 #ifdef VBOX_WINE_WITHOUT_LIBWINE 20 # include < windows.h>22 # include <iprt/win/windows.h> 21 23 #endif 22 24 23 25 #include <iprt/list.h> 24 26 25 HRESULT VBoxExtCheckInit( );26 HRESULT VBoxExtCheckTerm( );27 HRESULT VBoxExtCheckInit(void); 28 HRESULT VBoxExtCheckTerm(void); 27 29 #if defined(VBOX_WINE_WITH_SINGLE_CONTEXT) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT) 28 30 # ifndef VBOX_WITH_WDDM … … 40 42 * So lock order should always be "wined3d lock" -> "dll lock". 41 43 * To avoid possible deadlocks we make an asynchronous call to a worker thread to make a context release from there. */ 44 struct wined3d_context; 42 45 void VBoxExtReleaseContextAsync(struct wined3d_context *context); 43 46 #endif … … 55 58 typedef FNVBOXEXT_HASHMAP_EQUAL *PFNVBOXEXT_HASHMAP_EQUAL; 56 59 60 struct VBOXEXT_HASHMAP; 61 struct VBOXEXT_HASHMAP_ENTRY; 57 62 typedef DECLCALLBACK(bool) FNVBOXEXT_HASHMAP_VISITOR(struct VBOXEXT_HASHMAP *pMap, void *pvKey, struct VBOXEXT_HASHMAP_ENTRY *pValue, void *pvVisitor); 58 63 typedef FNVBOXEXT_HASHMAP_VISITOR *PFNVBOXEXT_HASHMAP_VISITOR; … … 98 103 } 99 104 105 struct VBOXEXT_HASHCACHE_ENTRY; 100 106 typedef DECLCALLBACK(void) FNVBOXEXT_HASHCACHE_CLEANUP_ENTRY(void *pvKey, struct VBOXEXT_HASHCACHE_ENTRY *pEntry); 101 107 typedef FNVBOXEXT_HASHCACHE_CLEANUP_ENTRY *PFNVBOXEXT_HASHCACHE_CLEANUP_ENTRY; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/wined3d_gl.h
r52329 r63021 200 200 PGLFNCHROMIUMPARAMETERUCR pglChromiumParameteriCR; 201 201 202 struct VBOXUHGSMI; 202 203 HGLRC (WINAPI *pVBoxCreateContext)(HDC, struct VBOXUHGSMI*) DECLSPEC_HIDDEN; 203 204 void (WINAPI *pVBoxCtxChromiumParameteriCR)(HGLRC , GLenum , GLint) DECLSPEC_HIDDEN;
Note:
See TracChangeset
for help on using the changeset viewer.