Changeset 6519 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Jan 28, 2008 4:57:39 AM (17 years ago)
- Location:
- trunk/src/VBox/Additions/x11/xgraphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c
r6484 r6519 479 479 pVBox->reqp = p; 480 480 pVBox->pCurs = NULL; 481 pVBox->use _hw_cursor = vbox_host_can_hwcursor(pScrn, pVBox);482 pVBox-> set_pointer_shape_size = size;483 pVBox->pointer _offscreen = FALSE;481 pVBox->useHwCursor = vbox_host_can_hwcursor(pScrn, pVBox); 482 pVBox->pointerHeaderSize = size; 483 pVBox->pointerOffscreen = FALSE; 484 484 pVBox->useVbva = vboxInitVbva(scrnIndex, pScreen, pVBox); 485 485 } else { … … 558 558 if (((x < 0) || (x > pScrn->pScreen->width)) 559 559 || ((y < 0) || (y > pScrn->pScreen->height))) { 560 if (!pVBox->pointer _offscreen) {561 pVBox->pointer _offscreen = TRUE;560 if (!pVBox->pointerOffscreen) { 561 pVBox->pointerOffscreen = TRUE; 562 562 vbox_vmm_hide_cursor (pScrn, pVBox); 563 563 } 564 564 } 565 565 else { 566 if (pVBox->pointer _offscreen) {567 pVBox->pointer _offscreen = FALSE;566 if (pVBox->pointerOffscreen) { 567 pVBox->pointerOffscreen = FALSE; 568 568 vbox_vmm_show_cursor (pScrn, pVBox); 569 569 } … … 604 604 ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; 605 605 VBOXPtr pVBox = pScrn->driverPrivate; 606 return pVBox->use _hw_cursor;606 return pVBox->useHwCursor; 607 607 } 608 608 … … 642 642 size_mask = ((dst_pitch * h) + 3) & (size_t) ~3; 643 643 size_rgba = w * h * 4; 644 size = size_mask + size_rgba + pVBox-> set_pointer_shape_size;644 size = size_mask + size_rgba + pVBox->pointerHeaderSize; 645 645 646 646 p = c = xcalloc (1, size); … … 780 780 bitsp->xhot, bitsp->yhot, w, h); 781 781 782 size = w * h * 4 + pVBox-> set_pointer_shape_size + mask_size;782 size = w * h * 4 + pVBox->pointerHeaderSize + mask_size; 783 783 p = xcalloc (1, size); 784 784 if (!p) … … 847 847 Bool rc; 848 848 849 if (pVBox->use _hw_cursor)849 if (pVBox->useHwCursor) 850 850 { 851 851 xf86DrvMsg(pScrn->scrnIndex, X_INFO, -
trunk/src/VBox/Additions/x11/xgraphics/vboxvideo.h
r6518 r6519 156 156 IOADDRESS ioBase; 157 157 #endif /* XORG_7X defined */ 158 #ifndef RT_OS_SOLARIS 159 int vbox_fd; 160 #endif 158 161 VMMDevReqMousePointer *reqp; 159 162 xf86CursorInfoPtr pCurs; … … 163 166 Bool pointerOffscreen; 164 167 Bool useVbva; 168 #ifndef RT_OS_SOLARIS 169 VMMDevVideoAccelFlush *reqf; 170 VMMDevVideoAccelEnable *reqe; 171 #endif 165 172 VMMDevMemory *pVMMDevMemory; 166 173 VBVAMEMORY *pVbvaMemory;
Note:
See TracChangeset
for help on using the changeset viewer.