- Timestamp:
- Apr 21, 2015 3:53:01 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r55354 r55358 98 98 /* #define DPMS_SERVER 99 99 #include "extensions/dpms.h" */ 100 101 /* ShadowFB support */ 102 #include "shadowfb.h" 100 103 101 104 /* VGA hardware functions for setting and restoring text mode */ … … 1271 1274 vbox_open (pScrn, pScreen, pVBox); 1272 1275 vboxEnableVbva(pScrn); 1276 /* Set up the dirty rectangle handler. It will be added into a function 1277 * chain and gets removed when the screen is cleaned up. */ 1278 if (ShadowFBInit2(pScreen, NULL, vbvxHandleDirtyRect) != TRUE) 1279 return FALSE; 1273 1280 VBoxInitialiseSizeHints(pScrn); 1274 1281 -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r55332 r55358 286 286 extern void vbox_close (ScrnInfoPtr pScrn, VBOXPtr pVBox); 287 287 288 /* vbva.c */ 289 extern void vbvxHandleDirtyRect(ScrnInfoPtr pScrn, int iRects, BoxPtr aRects); 288 290 extern Bool vboxEnableVbva(ScrnInfoPtr pScrn); 289 291 extern void vboxDisableVbva(ScrnInfoPtr pScrn); -
trunk/src/VBox/Additions/x11/vboxvideo/vbva.c
r55357 r55358 51 51 * rectangles 52 52 */ 53 static void 54 vboxHandleDirtyRect(ScrnInfoPtr pScrn, int iRects, BoxPtr aRects) 53 void vbvxHandleDirtyRect(ScrnInfoPtr pScrn, int iRects, BoxPtr aRects) 55 54 { 56 55 VBVACMDHDR cmdHdr; … … 135 134 return FALSE; 136 135 } 137 138 /* Set up the dirty rectangle handler. It will be added into a function139 * chain and gets removed when the screen is cleaned up. */140 if (ShadowFBInit2(pScreen, NULL, vboxHandleDirtyRect) != TRUE)141 {142 xf86DrvMsg(scrnIndex, X_ERROR,143 "Unable to install dirty rectangle handler for VirtualBox graphics acceleration.\n");144 return FALSE;145 }146 136 return TRUE; 147 137 }
Note:
See TracChangeset
for help on using the changeset viewer.