VirtualBox

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

DisplayImpl: handle VBVA_SCREEN_F_BLANK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r54494 r54567  
    10021002    /* No updates for a disabled guest screen. */
    10031003    if (maFramebuffers[uScreenId].fDisabled)
     1004        return;
     1005
     1006    /* No updates for a blank guest screen. */
     1007    if (maFramebuffers[uScreenId].flags & VBVA_SCREEN_F_BLANK)
    10041008        return;
    10051009
     
    27192723    }
    27202724
     2725    DISPLAYFBINFO *pFBInfo = &maFramebuffers[aScreenId];
     2726
     2727    /* No source bitmap for a blank guest screen. */
     2728    if (pFBInfo->flags & VBVA_SCREEN_F_BLANK)
     2729    {
     2730        aDisplaySourceBitmap = NULL;
     2731        return E_FAIL;
     2732    }
     2733
    27212734    HRESULT hr = S_OK;
    27222735
    2723     DISPLAYFBINFO *pFBInfo = &maFramebuffers[aScreenId];
    27242736    if (pFBInfo->pSourceBitmap.isNull())
    27252737    {
     
    38873899    }
    38883900
     3901    /* If the screen if blanked, then do a resize request to make sure that the framebuffer
     3902     * switches to the default format.
     3903     */
     3904    fResize = fResize || RT_BOOL(pScreen->u16Flags & VBVA_SCREEN_F_BLANK);
     3905
    38893906    /* Check if this is a real resize or a notification about the screen origin.
    38903907     * The guest uses this VBVAResize call for both.
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