Changeset 3397 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 3, 2007 4:49:25 PM (18 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk
r3356 r3397 31 31 VBoxDisp_SDKS = W2K3DDKX86 WINPSDKINCS 32 32 VBoxDisp_SYSSUFF = .dll 33 VBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR 33 VBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW 34 34 #VBoxDisp_DEFS += LOG_ENABLED 35 35 #VBoxDisp_DEFS += STAT_sunlover -
trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c
r3395 r3397 121 121 pHalInfo->ddCaps.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE; 122 122 123 #if 0 /* not mandatory */ 123 124 /* DX5 and up */ 124 125 pHalInfo->GetDriverInfo = DdGetDriverInfo; 125 126 pHalInfo->dwFlags |= DDHALINFO_GETDRIVERINFOSET; 127 #endif 126 128 127 129 #if 0 … … 168 170 /* Fill in the HAL Callback pointers */ 169 171 pCallBacks->dwSize = sizeof(DD_CALLBACKS); 172 pCallBacks->dwFlags = 0; 173 174 /* 170 175 pCallBacks->dwFlags = DDHAL_CB32_CREATESURFACE | DDHAL_CB32_CANCREATESURFACE; 171 176 pCallBacks->CreateSurface = DdCreateSurface; 172 177 pCallBacks->CanCreateSurface = DdCanCreateSurface; 173 174 /*175 178 pCallBacks->WaitForVerticalBlank = DdWaitForVerticalBlank; 176 179 pCallBacks->GetScanLine = DdGetScanLine; … … 182 185 /* Fill in the Surface Callback pointers */ 183 186 pSurfaceCallBacks->dwSize = sizeof(DD_SURFACECALLBACKS); 187 pSurfaceCallBacks->dwFlags = 0; 188 189 /* 184 190 pSurfaceCallBacks->dwFlags = DDHAL_SURFCB32_DESTROYSURFACE | DDHAL_SURFCB32_LOCK; // DDHAL_SURFCB32_UNLOCK; 185 191 pSurfaceCallBacks->DestroySurface = DdDestroySurface; 186 //pSurfaceCallBacks->Lock = DdLock;192 pSurfaceCallBacks->Lock = DdLock; 187 193 pSurfaceCallBacks->Unlock = DdUnlock; 188 189 /*190 194 pSurfaceCallBacks->Flip = DdFlip; 191 195 pSurfaceCallBacks->GetBltStatus = DdGetBltStatus; … … 692 696 // can boot those allocations out of memory to make room for DirectDraw. 693 697 // 694 // We implement this function in the P2 driver because we have DirectDraw695 // entirely manage our off-screen heap, and we use HeapVidMemAllocAligned696 // to put GDI device-bitmaps in off-screen memory. DirectDraw applications697 // have a higher priority for getting stuff into video memory, though, and698 // so this function is used to boot those GDI surfaces out of memory in699 // order to make room for DirectDraw.700 //701 698 //----------------------------------------------------------------------------- 702 699 … … 707 704 708 705 lpFreeDriverMemory->ddRVal = DDERR_OUTOFMEMORY; 709 return (DDHAL_DRIVER_HANDLED);706 return DDHAL_DRIVER_HANDLED; 710 707 } 711 708
Note:
See TracChangeset
for help on using the changeset viewer.