VirtualBox

Changeset 55373 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 22, 2015 1:03:49 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: test for new host capabilities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vbva.c

    r55367 r55373  
    184184}
    185185
     186static 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
     196static 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
    186204/**
    187205 * Inform VBox that we will supply it with dirty rectangle information
     
    219237        VBoxHGSMISendCapsInfo(&pVBox->guestCtx, VBVACAPS_VIDEO_MODE_HINTS | VBVACAPS_DISABLE_CURSOR_INTEGRATION);
    220238# endif
     239    pVBox->fHaveHGSMIModeHints = haveHGSMIModeHintAndCursorReportingInterface(pVBox);
     240    pVBox->fHostHasScreenBlankingFlag = hostHasScreenBlankingFlag(pVBox);
    221241#endif
    222242    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette