Changeset 27309 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Mar 11, 2010 11:19:50 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c
r26562 r27309 209 209 210 210 pVBox = pScrn->driverPrivate; 211 TRACE_ENTRY();212 211 if (pVBox->useVbva == FALSE) 213 212 return; … … 1019 1018 } 1020 1019 1020 Bool 1021 vboxGuestIsSeamless(ScrnInfoPtr pScrn) 1022 { 1023 VMMDevSeamlessMode mode; 1024 VBOXPtr pVBox = pScrn->driverPrivate; 1025 TRACE_ENTRY(); 1026 if (!pVBox->useDevice) 1027 return FALSE; 1028 if (RT_FAILURE(VbglR3SeamlessGetLastEvent(&mode))) 1029 return FALSE; 1030 return (mode != VMMDev_Seamless_Disabled); 1031 } 1032 1021 1033 /** 1022 1034 * Save video mode parameters to the registry. -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r25486 r27309 253 253 254 254 extern Bool vboxHostLikesVideoMode(ScrnInfoPtr pScrn, uint32_t cx, uint32_t cy, uint32_t cBits); 255 extern Bool vboxGuestIsSeamless(ScrnInfoPtr pScrn); 255 256 extern Bool vboxSaveVideoMode(ScrnInfoPtr pScrn, uint32_t cx, uint32_t cy, uint32_t cBits); 256 257 extern Bool vboxRetrieveVideoMode(ScrnInfoPtr pScrn, uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits); -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_13.c
r27035 r27309 295 295 VBOXSetMode(crtc->scrn, adjusted_mode); 296 296 VBOXAdjustFrame(crtc->scrn->scrnIndex, x, y, 0); 297 vboxSaveVideoMode(crtc->scrn, adjusted_mode->HDisplay, 298 adjusted_mode->VDisplay, crtc->scrn->bitsPerPixel); 297 /* Don't remember any modes set while we are seamless, as they are 298 * just temporary. */ 299 if (!vboxGuestIsSeamless(crtc->scrn)) 300 vboxSaveVideoMode(crtc->scrn, adjusted_mode->HDisplay, 301 adjusted_mode->VDisplay, crtc->scrn->bitsPerPixel); 299 302 } 300 303
Note:
See TracChangeset
for help on using the changeset viewer.