Changeset 17610 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c
- Timestamp:
- Mar 10, 2009 10:14:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c
r16615 r17610 130 130 ULONG ret = 0; 131 131 132 #ifndef VBOX_WITH_HGSMI 132 133 if (ppdev && ppdev->pInfo && vboxHwBufferBeginUpdate (ppdev)) 133 134 { … … 142 143 else 143 144 DISPDBG((0, "VBOXESC_ISVRDPACTIVE -> 0\n")); 145 #else 146 if (ppdev && ppdev->pVBVA) 147 { 148 if (ppdev->pVBVA->u32HostEvents & VBVA_F_MODE_VRDP) 149 { 150 ret = 1; 151 } 152 DISPDBG((0, "VBOXESC_ISVRDPACTIVE -> %d (%x)\n", ret, ppdev->pVBVA->u32HostEvents)); 153 } 154 else 155 DISPDBG((0, "VBOXESC_ISVRDPACTIVE -> 0\n")); 156 #endif /* VBOX_WITH_HGSMI */ 144 157 return ret; 145 158 } … … 274 287 { INDEX_DrvStrokePath, (PFN) DrvStrokePath }, // 14 0xe 275 288 { INDEX_DrvFillPath, (PFN) DrvFillPath }, // 15 0xf 289 // { INDEX_DrvStrokeAndFillPath, (PFN) DrvStrokeAndFillPath }, // 16 0x10 276 290 { INDEX_DrvPaint, (PFN) DrvPaint }, // 17 0x11 277 291 { INDEX_DrvBitBlt, (PFN) DrvBitBlt }, // 18 0x12 … … 316 330 #define HOOKS_BMF32BPP gflHooks 317 331 332 #ifndef VBOX_WITH_HGSMI 318 333 HSEMAPHORE ghsemHwBuffer = 0; 334 #endif /* !VBOX_WITH_HGSMI */ 319 335 320 336 /******************************Public*Routine******************************\ … … 336 352 // Set up hook flags to intercept all functions which can generate VRDP orders 337 353 gflHooks = HOOK_BITBLT | HOOK_TEXTOUT | HOOK_FILLPATH | 338 HOOK_COPYBITS | HOOK_STROKEPATH | HOOK_LINETO | 354 HOOK_COPYBITS | HOOK_STROKEPATH | HOOK_LINETO | /* HOOK_STROKEANDFILLPATH | */ 339 355 #ifdef VBOX_NEW_SURFACE_CODE 340 356 HOOK_PAINT | HOOK_STRETCHBLT | HOOK_SYNCHRONIZE; … … 367 383 DDI_DRIVER_VERSION_NT4; 368 384 385 #ifndef VBOX_WITH_HGSMI 369 386 if (!ghsemHwBuffer) 370 387 { 371 388 ghsemHwBuffer = EngCreateSemaphore (); 372 389 } 390 #endif /* !VBOX_WITH_HGSMI */ 373 391 374 392 return(TRUE); … … 387 405 DISPDBG((0, "VBoxDisp::DrvDisableDriver called.\n")); 388 406 407 #ifndef VBOX_WITH_HGSMI 389 408 if (ghsemHwBuffer) 390 409 { … … 392 411 ghsemHwBuffer = NULL; 393 412 } 413 #endif /* !VBOX_WITH_HGSMI */ 394 414 395 415 return; … … 1128 1148 case DN_DEVICE_ORIGIN: 1129 1149 ppdev->ptlDevOrg = *(PPOINTL)pvData; 1150 #ifndef VBOX_WITH_HGSMI 1130 1151 DISPDBG((3, "DN_DEVICE_ORIGIN: %d, %d (PSO = %p, pInfo = %p)\n", ppdev->ptlDevOrg.x, 1131 1152 ppdev->ptlDevOrg.y, pso, ppdev->pInfo)); … … 1136 1157 VBoxProcessDisplayInfo(ppdev); 1137 1158 } 1159 #else 1160 DISPDBG((3, "DN_DEVICE_ORIGIN: %d, %d (PSO = %p)\n", ppdev->ptlDevOrg.x, 1161 ppdev->ptlDevOrg.y, pso)); 1162 if (ppdev->bHGSMISupported) 1163 { 1164 VBoxProcessDisplayInfo(ppdev); 1165 } 1166 #endif /* VBOX_WITH_HGSMI */ 1138 1167 break; 1139 1168 case DN_DRAWING_BEGIN:
Note:
See TracChangeset
for help on using the changeset viewer.