VirtualBox

Changeset 54565 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 27, 2015 8:13:49 PM (10 years ago)
Author:
vboxsync
Message:

include,Additions: introduce VBVA_SCREEN_F_BLANK

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp

    r53970 r54565  
    362362    return rc;
    363363}
     364
     365
     366/**
     367 * Query the supported flags in VBVAINFOSCREEN::u16Flags.
     368 *
     369 * @returns The mask of VBVA_SCREEN_F_* flags or 0 if host does not support the request.
     370 * @param  pCtx  the context containing the heap to use
     371 */
     372RTDECL(uint16_t) VBoxHGSMIGetScreenFlags(PHGSMIGUESTCOMMANDCONTEXT pCtx)
     373{
     374    uint32_t u32Flags = 0;
     375    int rc = VBoxQueryConfHGSMI(pCtx, VBOX_VBVA_CONF32_SCREEN_FLAGS, &u32Flags);
     376    LogFunc(("u32Flags = 0x%x rc %Rrc\n", u32Flags, rc));
     377    if (RT_FAILURE(rc))
     378        u32Flags = 0;
     379    return (uint16_t)u32Flags;
     380}
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r54168 r54565  
    21902190                pConf32->u32Value = pVGAState->fHostCursorCapabilities;
    21912191            }
     2192            else if (pConf32->u32Index == VBOX_VBVA_CONF32_SCREEN_FLAGS)
     2193            {
     2194                pConf32->u32Value = VBVA_SCREEN_F_ACTIVE | VBVA_SCREEN_F_DISABLED | VBVA_SCREEN_F_BLANK;
     2195            }
    21922196            else
    21932197            {
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