Changeset 3378 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 3, 2007 9:21:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c
r3377 r3378 15 15 #include "driver.h" 16 16 #include "dd.h" 17 18 #if 0 19 static DWORD APIENTRY DdCreateSurface(PDD_CREATESURFACEDATA lpCreateSurface); 20 #endif 17 21 18 22 /** … … 140 144 141 145 /* 146 pCallBacks->dwFlags = DDHAL_CB32_CREATESURFACE; 147 pCallBacks->CreateSurface = DdCreateSurface; 142 148 pCallBacks->CanCreateSurface = DdCanCreateSurface; 143 pCallBacks->CreateSurface = DdCreateSurface;144 149 pCallBacks->WaitForVerticalBlank = DdWaitForVerticalBlank; 145 150 pCallBacks->GetScanLine = DdGetScanLine; 146 151 pCallBacks->MapMemory = DdMapMemory; 147 DDHAL_CB32_CANCREATESURFACE | DDHAL_CB32_ CREATESURFACE | DDHAL_CB32_WAITFORVERTICALBLANK | DDHAL_CB32_MAPMEMORY | DDHAL_CB32_GETSCANLINE152 DDHAL_CB32_CANCREATESURFACE | DDHAL_CB32_WAITFORVERTICALBLANK | DDHAL_CB32_MAPMEMORY | DDHAL_CB32_GETSCANLINE 148 153 */ 149 154 /* Note: pCallBacks->SetMode & pCallBacks->DestroyDriver are unused in Windows 2000 and up */ … … 153 158 pSurfaceCallBacks->dwSize = sizeof(DD_SURFACECALLBACKS); 154 159 pSurfaceCallBacks->dwFlags = 0; 160 155 161 /* 162 pSurfaceCallBacks->dwFlags = DDHAL_SURFCB32_DESTROYSURFACE | DDHAL_SURFCB32_LOCK; 156 163 pSurfaceCallBacks->DestroySurface = DdDestroySurface; 164 pSurfaceCallBacks->Lock = DdLock; 157 165 pSurfaceCallBacks->Flip = DdFlip; 158 pSurfaceCallBacks->Lock = DdLock;159 166 pSurfaceCallBacks->GetBltStatus = DdGetBltStatus; 160 167 pSurfaceCallBacks->GetFlipStatus = DdGetFlipStatus; 161 168 pSurfaceCallBacks->Blt = DdBlt; 162 DDHAL_SURFCB32_ DESTROYSURFACE | DDHAL_SURFCB32_FLIP | DDHAL_SURFCB32_BLT | DDHAL_SURFCB32_GETBLTSTATUS | DDHAL_SURFCB32_GETFLIPSTATUS DDHAL_SURFCB32_LOCK;169 DDHAL_SURFCB32_FLIP | DDHAL_SURFCB32_BLT | DDHAL_SURFCB32_GETBLTSTATUS | DDHAL_SURFCB32_GETFLIPSTATUS; 163 170 */ 164 171 … … 190 197 191 198 192 199 #if 0 200 /** 201 * DdCreateSurface 202 * 203 * The DdCreateSurface callback function creates a DirectDraw surface. 204 * 205 * lpCreateSurface 206 * Points to a DD_CREATESURFACEDATA structure that contains the information required to create a surface. 207 * 208 * Return Value 209 * 210 * DdCreateSurface returns one of the following callback codes: 211 * DDHAL_DRIVER_HANDLED 212 * DDHAL_DRIVER_NOTHANDLED 213 * 214 */ 215 static DWORD APIENTRY DdCreateSurface(PDD_CREATESURFACEDATA lpCreateSurface) 216 { 217 lpCreateSurface->lpDD->fpVidMem = DDHAL_PLEASEALLOC_USERMEM; 218 219 return DDHAL_DRIVER_NOTHANDLED; 220 } 221 #endif
Note:
See TracChangeset
for help on using the changeset viewer.