Changeset 7440 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Mar 12, 2008 4:13:27 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/x11/xgraphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c
r7274 r7440 16 16 17 17 #include <VBox/VBoxGuest.h> 18 #include <VBox/VBoxDev.h> 18 19 19 20 #include <xf86Pci.h> … … 823 824 824 825 /** 826 * Inform VBox that we are aware of advanced graphics functions 827 * (i.e. dynamic resizing, seamless). 828 * 829 * @returns TRUE for success, FALSE for failure 830 */ 831 Bool 832 vboxEnableGraphicsCap(void) 833 { 834 return RT_SUCCESS(VbglR3SetGuestCaps(VMMDEV_GUEST_SUPPORTS_GRAPHICS, 0)); 835 } 836 837 /** 838 * Inform VBox that we are no longer aware of advanced graphics functions 839 * (i.e. dynamic resizing, seamless). 840 * 841 * @returns TRUE for success, FALSE for failure 842 */ 843 Bool 844 vboxDisableGraphicsCap(void) 845 { 846 return RT_SUCCESS(VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_GRAPHICS)); 847 } 848 849 /** 825 850 * Query the last display change request. 826 851 * -
trunk/src/VBox/Additions/x11/xgraphics/vboxvideo.h
r7274 r7440 161 161 162 162 extern Bool vboxEnableVbva(ScrnInfoPtr pScrn); 163 extern Bool vboxDisableVbva(ScrnInfoPtr pScrn); 163 164 164 extern Bool vboxDisableVbva(ScrnInfoPtr pScrn); 165 extern Bool vboxEnableGraphicsCap(void); 166 extern Bool vboxDisableGraphicsCap(void); 165 167 166 168 extern Bool vboxGetDisplayChangeRequest(ScrnInfoPtr pScrn, uint32_t *pcx, -
trunk/src/VBox/Additions/x11/xgraphics/vboxvideo_13.c
r7274 r7440 925 925 xf86DrvMsg(scrnIndex, X_INFO, 926 926 "The VBox video extensions are now enabled.\n"); 927 vboxEnableGraphicsCap(); 927 928 } else 928 929 xf86DrvMsg(scrnIndex, X_ERROR, "Failed to open the VBox system device - make sure that the VirtualBox guest additions are properly installed. If you are not sure, try reinstalling them.\n"); … … 947 948 if (pVBox->useVbva == TRUE) 948 949 vboxDisableVbva(pScrn); 950 vboxDisableGraphicsCap(); 949 951 } 950 952 … … 957 959 if (pVBox->useVbva == TRUE) 958 960 vboxDisableVbva(pScrn); 961 vboxDisableGraphicsCap(); 959 962 if (pScrn->vtSema) { 960 963 VBOXSaveRestore(xf86Screens[scrnIndex], MODE_RESTORE); … … 1075 1078 if (vboxEnableVbva(pScrn) != TRUE) /* Bad but not fatal */ 1076 1079 pVBox->useVbva = FALSE; 1080 vboxEnableGraphicsCap(); 1077 1081 return (TRUE); 1078 1082 }
Note:
See TracChangeset
for help on using the changeset viewer.