Changeset 55373 in vbox for trunk/src/VBox
- Timestamp:
- Apr 22, 2015 1:03:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vbva.c
r55367 r55373 184 184 } 185 185 186 static bool haveHGSMIModeHintAndCursorReportingInterface(VBOXPtr pVBox) 187 { 188 uint32_t fModeHintReporting, fCursorReporting; 189 190 return RT_SUCCESS(VBoxQueryConfHGSMI(&pVBox->guestCtx, VBOX_VBVA_CONF32_MODE_HINT_REPORTING, &fModeHintReporting)) 191 && RT_SUCCESS(VBoxQueryConfHGSMI(&pVBox->guestCtx, VBOX_VBVA_CONF32_GUEST_CURSOR_REPORTING, &fCursorReporting)) 192 && fModeHintReporting == VINF_SUCCESS 193 && fCursorReporting == VINF_SUCCESS; 194 } 195 196 static bool hostHasScreenBlankingFlag(VBOXPtr pVBox) 197 { 198 uint32_t fScreenFlags; 199 200 return RT_SUCCESS(VBoxQueryConfHGSMI(&pVBox->guestCtx, VBOX_VBVA_CONF32_SCREEN_FLAGS, &fScreenFlags)) 201 && fScreenFlags & VBVA_SCREEN_F_BLANK; 202 } 203 186 204 /** 187 205 * Inform VBox that we will supply it with dirty rectangle information … … 219 237 VBoxHGSMISendCapsInfo(&pVBox->guestCtx, VBVACAPS_VIDEO_MODE_HINTS | VBVACAPS_DISABLE_CURSOR_INTEGRATION); 220 238 # endif 239 pVBox->fHaveHGSMIModeHints = haveHGSMIModeHintAndCursorReportingInterface(pVBox); 240 pVBox->fHostHasScreenBlankingFlag = hostHasScreenBlankingFlag(pVBox); 221 241 #endif 222 242 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.