Changeset 3377 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c
- Timestamp:
- Jul 3, 2007 9:06:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c
r3375 r3377 59 59 /* Setup the HAL driver caps. */ 60 60 memset(pHalInfo, 0, sizeof(DD_HALINFO)); 61 pHalInfo->dwSize = sizeof(DD_HALINFO); 61 pHalInfo->dwSize = sizeof(DD_HALINFO); 62 pHalInfo->dwFlags = 0; 62 63 63 64 if (!(pvmList && pdwFourCC)) … … 83 84 pHalInfo->vmiData.dwZBufferAlign = 4; 84 85 pHalInfo->vmiData.dwTextureAlign = 4; 86 } 87 pHalInfo->ddCaps.dwSize = sizeof(DDNTCORECAPS); 88 pHalInfo->ddCaps.dwVidMemTotal = pDev->cScreenSize; 89 pHalInfo->ddCaps.dwVidMemFree = pDev->cScreenSize; 85 90 86 pHalInfo->ddCaps.dwVidMemTotal = pDev->cScreenSize; 87 } 91 pHalInfo->ddCaps.dwCaps = DDCAPS_NOHARDWARE; /* ??? */ 92 pHalInfo->ddCaps.dwCaps2 = DDCAPS2_CERTIFIED; 93 94 pHalInfo->ddCaps.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_VIDEOMEMORY; 88 95 89 96 #if 0 … … 140 147 DDHAL_CB32_CANCREATESURFACE | DDHAL_CB32_CREATESURFACE | DDHAL_CB32_WAITFORVERTICALBLANK | DDHAL_CB32_MAPMEMORY | DDHAL_CB32_GETSCANLINE 141 148 */ 149 /* Note: pCallBacks->SetMode & pCallBacks->DestroyDriver are unused in Windows 2000 and up */ 142 150 143 151 // Fill in the Surface Callback pointers … … 158 166 // pSurfaceCallBacks.dwFlags |= DDHAL_SURFCB32_SETCOLORKEY; 159 167 168 memset(&pPaletteCallBacks, 0, sizeof(DD_PALETTECALLBACKS)); 169 pPaletteCallBacks->dwSize = sizeof(DD_PALETTECALLBACKS); 170 pPaletteCallBacks->dwFlags = 0; 160 171 161 172 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.