Changeset 27629 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Mar 23, 2010 1:45:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r27606 r27629 2087 2087 PVBOXWDDM_POINTER_INFO pPointerInfo = &pDevExt->aSources[pSetPointerPosition->VidPnSourceId].PointerInfo; 2088 2088 PVIDEO_POINTER_ATTRIBUTES pPointerAttributes = &pPointerInfo->Attributes.data; 2089 BOOLEAN bNotifyVisibility; 2089 2090 if (pSetPointerPosition->Flags.Visible) 2091 { 2092 bNotifyVisibility = !(pPointerAttributes->Enable & VBOX_MOUSE_POINTER_VISIBLE); 2090 2093 pPointerAttributes->Enable |= VBOX_MOUSE_POINTER_VISIBLE; 2094 } 2091 2095 else 2096 { 2097 bNotifyVisibility = !!(pPointerAttributes->Enable & VBOX_MOUSE_POINTER_VISIBLE); 2092 2098 pPointerAttributes->Enable &= ~VBOX_MOUSE_POINTER_VISIBLE; 2099 } 2093 2100 2094 2101 pPointerInfo->xPos = pSetPointerPosition->X; 2095 2102 pPointerInfo->yPos = pSetPointerPosition->Y; 2103 2104 if (bNotifyVisibility && vboxQueryHostWantsAbsolute()) 2105 { 2106 // tell the host to use the guest's pointer 2107 VIDEO_POINTER_ATTRIBUTES PointerAttributes; 2108 2109 /* Visible and No Shape means Show the pointer. 2110 * It is enough to init only this field. 2111 */ 2112 PointerAttributes.Enable = pSetPointerPosition->Flags.Visible ? VBOX_MOUSE_POINTER_VISIBLE : 0; 2113 2114 BOOLEAN bResult = vboxUpdatePointerShape(pDevExt, &PointerAttributes, sizeof (PointerAttributes)); 2115 Assert(bResult); 2116 } 2096 2117 2097 2118 dfprintf(("<== "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter)); … … 2122 2143 Status = STATUS_SUCCESS; 2123 2144 else 2145 { 2146 AssertBreakpoint(); 2124 2147 drprintf((__FUNCTION__": vboxUpdatePointerShape failed\n")); 2148 } 2125 2149 } 2126 2150 }
Note:
See TracChangeset
for help on using the changeset viewer.