Changeset 7443 in vbox for trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c
- Timestamp:
- Mar 13, 2008 3:56:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c
r7440 r7443 315 315 316 316 Bool 317 vbox_init(int scrnIndex )317 vbox_init(int scrnIndex, VBOXPtr pVBox) 318 318 { 319 319 Bool rc = TRUE; … … 321 321 if (RT_FAILURE(vrc)) 322 322 { 323 xf86DrvMsg(scrnIndex, X_ERROR, "VbglR3Init failed rc=%d.\n", rc); 323 xf86DrvMsg(scrnIndex, X_ERROR, 324 "Failed to initialize the VirtualBox device (rc=%d) - make sure that the VirtualBox guest additions are properly installed. If you are not sure, try reinstalling them. The X Window graphics drivers will run in compatibility mode.\n", 325 vrc); 324 326 rc = FALSE; 325 327 } 328 pVBox->useDevice = rc; 326 329 return rc; 327 330 } … … 337 340 TRACE_ENTRY(); 338 341 342 if (!pVBox->useDevice) 343 return FALSE; 339 344 pVBox->useVbva = FALSE; 340 345 … … 733 738 Bool rc; 734 739 740 if (!pVBox->useDevice) 741 return FALSE; 735 742 pVBox->pCurs = pCurs = xf86CreateCursorInfoRec(); 736 743 if (!pCurs) … … 830 837 */ 831 838 Bool 832 vboxEnableGraphicsCap(void) 833 { 839 vboxEnableGraphicsCap(VBOXPtr pVBox) 840 { 841 if (!pVBox->useDevice) 842 return FALSE; 834 843 return RT_SUCCESS(VbglR3SetGuestCaps(VMMDEV_GUEST_SUPPORTS_GRAPHICS, 0)); 835 844 } … … 842 851 */ 843 852 Bool 844 vboxDisableGraphicsCap(void) 845 { 853 vboxDisableGraphicsCap(VBOXPtr pVBox) 854 { 855 if (!pVBox->useDevice) 856 return FALSE; 846 857 return RT_SUCCESS(VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_GRAPHICS)); 847 858 } … … 860 871 Bool 861 872 vboxGetDisplayChangeRequest(ScrnInfoPtr pScrn, uint32_t *pcx, uint32_t *pcy, 862 uint32_t *pcBits, uint32_t *piDisplay) 863 { 873 uint32_t *pcBits, uint32_t *piDisplay, 874 VBOXPtr pVBox) 875 { 876 if (!pVBox->useDevice) 877 return FALSE; 864 878 int rc = VbglR3GetLastDisplayChangeRequest(pcx, pcy, pcBits, piDisplay); 865 879 if (RT_SUCCESS(rc)) … … 868 882 return FALSE; 869 883 } 870
Note:
See TracChangeset
for help on using the changeset viewer.