Changeset 182
- Timestamp:
- Nov 30, 2010, 1:41:16 PM (15 years ago)
- Location:
- trunk/openjdk/jdk/src/windows/native/sun/java2d
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/windows/native/sun/java2d/d3d/D3DContext.h
r2 r182 230 230 DWORD GetMaxTextureHeight() { return d3dDevDesc.dwMaxTextureHeight; } 231 231 DWORD GetMaxTextureAspectRatio() 232 #ifdef __WIN32OS2__ 233 { return 0; }; 234 #else 232 235 { return d3dDevDesc.dwMaxTextureAspectRatio; }; 236 #endif 233 237 BOOL IsPow2TexturesOnly() 234 238 { return d3dDevDesc.dpcTriCaps.dwTextureCaps & D3DPTEXTURECAPS_POW2; }; … … 444 448 sun_java2d_d3d_D3DContext_J2D_D3D_ENABLED_OK 445 449 446 #endif D3DCONTEXT_H450 #endif // D3DCONTEXT_H -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/DDBlitLoops.cpp
r2 r182 36 36 extern CriticalSection windowMoveLock; 37 37 38 #ifndef max 39 #define max(a,b) ( (a>b) ? a : b ) 40 #endif 41 #ifndef min 42 #define min(a,b) ( (a<b) ? a : b ) 43 #endif 44 38 45 extern "C" { 39 46 -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/Win32SurfaceData.cpp
r2 r182 83 83 ZeroMemory(info, sizeof(ThreadGraphicsInfo)); 84 84 TlsSetValue(threadInfoIndex, (LPVOID)info); 85 #ifndef __WIN32OS2__ 85 86 J2dTraceLn2(J2D_TRACE_VERBOSE, 86 87 " current batch limit for for thread 0x%x is %d", … … 89 90 // Fix for bug 4374079 90 91 ::GdiSetBatchLimit(1); 92 #endif 91 93 92 94 Disposer_AddRecord(env, JNI_GetCurrentThread(env), -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/WindowsFlags.cpp
r2 r182 119 119 sizeof(WCHAR)); 120 120 wcscpy(j2dAccelKey, J2D_ACCEL_KEY_ROOT); 121 wcscat(j2dAccelKey, javaVersion);121 wcscat(j2dAccelKey, (WCHAR *)javaVersion); 122 122 wcscat(j2dAccelKey, L"\\"); 123 123 j2dAccelDriverKey = -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/WindowsFlags.h
r2 r182 43 43 void SetDDEnabledFlag(JNIEnv *env, BOOL ddEnabled); 44 44 45 #endif WINDOWSFLAGS_H45 #endif // WINDOWSFLAGS_H -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/ddrawObject.cpp
r2 r182 278 278 DXObject *newDXObject; 279 279 280 #ifndef __WIN32OS2__ 280 281 // First, try to create a DX7 object 281 282 FnDDCreateExFunc ddCreateEx = NULL; … … 316 317 return NULL; 317 318 } 319 #else 320 J2dTraceLn(J2D_TRACE_VERBOSE, " Using DX4"); 321 IDirectDraw4 *ddObject; 322 323 ddResult = DirectDrawCreate(lpGUID, &ddObject, NULL); 324 if (ddResult != DD_OK) { 325 DebugPrintDirectDrawError(ddResult, 326 "DDraw::CreateDDrawObject: "\ 327 "DirectDrawCreate failed"); 328 return NULL; 329 } 330 ddResult = ddObject->SetCooperativeLevel(NULL, 331 DDSCL_NORMAL); 332 if (ddResult != DD_OK) { 333 DebugPrintDirectDrawError(ddResult, 334 "DDraw::CreateDDrawObject: Error "\ 335 "setting cooperative level"); 336 return NULL; 337 } 338 newDXObject = new DXObject(ddObject, hMonitor); 339 #endif 318 340 319 341 return new DDraw(newDXObject); -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/ddrawObject.h
r2 r182 71 71 class D3DContext; 72 72 73 #ifdef __WIN32OS2__ 74 #define IDirectDraw7 IDirectDraw4 75 #define IDirectDrawSurface7 IDirectDrawSurface4 76 #define IDirect3D7 IDirect3D2 77 #define IDirect3DDevice7 IDirect3DDevice2 78 #define D3DDEVICEDESC7 D3DDEVICEDESC 79 #endif 73 80 74 81 class DXObject { … … 138 145 HRESULT SetCooperativeLevel(HWND hWnd, DWORD dwFlags) { 139 146 return ddObject->SetCooperativeLevel(hWnd, 147 #ifdef DDSCL_FPUPRESERVE 140 148 (dwFlags | DDSCL_FPUPRESERVE)); 149 #else 150 dwFlags); 151 #endif 141 152 } 142 153 HRESULT CreateD3DObject(IDirect3D7 **d3dObject); … … 441 452 if (count == 0) { 442 453 //J2dTraceLn1(J2D_TRACE_VERBOSE, 443 // "DDCriticalSection::Leave Invalid " \444 // "decrement in DDCriticalSection " \454 // "DDCriticalSection::Leave Invalid " 455 // "decrement in DDCriticalSection " 445 456 // "for surface 0x%x\n", 446 457 // lpSurface); … … 479 490 480 491 481 #endif DDRAWOBJECT_H492 #endif // DDRAWOBJECT_H -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/ddrawUtils.h
r2 r182 133 133 } while(0) 134 134 135 #endif DDRAWUTILS_H135 #endif // DDRAWUTILS_H -
trunk/openjdk/jdk/src/windows/native/sun/java2d/windows/dxInit.h
r2 r182 56 56 BOOL DDCreateObject(); 57 57 58 #endif DXINIT_H58 #endif // DXINIT_H
Note:
See TracChangeset
for help on using the changeset viewer.