Changeset 31756 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Timestamp:
- Aug 18, 2010 12:10:29 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h
r31687 r31756 156 156 } VBOXWDDM_POINTER_INFO, *PVBOXWDDM_POINTER_INFO; 157 157 158 typedef struct VBOXWDDM_GLOBAL_POINTER_INFO 159 { 160 uint32_t cVisible; 161 } VBOXWDDM_GLOBAL_POINTER_INFO, *PVBOXWDDM_GLOBAL_POINTER_INFO; 162 158 163 #ifdef VBOX_WITH_VIDEOHWACCEL 159 164 typedef struct VBOXWDDM_VHWA … … 308 313 volatile uint32_t cContexts3D; 309 314 volatile uint32_t cDMACmdsOutstanding; 315 316 VBOXWDDM_GLOBAL_POINTER_INFO PointerInfo; 310 317 311 318 VBOXSHGSMILIST CtlList; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r31687 r31756 2668 2668 PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)hAdapter; 2669 2669 PVBOXWDDM_POINTER_INFO pPointerInfo = &pDevExt->aSources[pSetPointerPosition->VidPnSourceId].PointerInfo; 2670 PVBOXWDDM_GLOBAL_POINTER_INFO pGlobalPointerInfo = &pDevExt->PointerInfo; 2670 2671 PVIDEO_POINTER_ATTRIBUTES pPointerAttributes = &pPointerInfo->Attributes.data; 2671 2672 BOOLEAN bNotifyVisibility; 2672 2673 if (pSetPointerPosition->Flags.Visible) 2673 2674 { 2674 bNotifyVisibility = !(pPointerAttributes->Enable & VBOX_MOUSE_POINTER_VISIBLE); 2675 pPointerAttributes->Enable |= VBOX_MOUSE_POINTER_VISIBLE; 2675 bNotifyVisibility = (pGlobalPointerInfo->cVisible == 0); 2676 if (!(pPointerAttributes->Enable & VBOX_MOUSE_POINTER_VISIBLE)) 2677 { 2678 ++pGlobalPointerInfo->cVisible; 2679 pPointerAttributes->Enable |= VBOX_MOUSE_POINTER_VISIBLE; 2680 } 2676 2681 } 2677 2682 else 2678 2683 { 2679 bNotifyVisibility = !!(pPointerAttributes->Enable & VBOX_MOUSE_POINTER_VISIBLE); 2680 pPointerAttributes->Enable &= ~VBOX_MOUSE_POINTER_VISIBLE; 2684 if (!!(pPointerAttributes->Enable & VBOX_MOUSE_POINTER_VISIBLE)) 2685 { 2686 --pGlobalPointerInfo->cVisible; 2687 Assert(pGlobalPointerInfo->cVisible < UINT32_MAX/2); 2688 pPointerAttributes->Enable &= ~VBOX_MOUSE_POINTER_VISIBLE; 2689 bNotifyVisibility = (pGlobalPointerInfo->cVisible == 0); 2690 } 2681 2691 } 2682 2692
Note:
See TracChangeset
for help on using the changeset viewer.