VirtualBox

Changeset 63822 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Sep 14, 2016 6:18:20 AM (8 years ago)
Author:
vboxsync
Message:

include,Main,DevVGA: bugref:8387: support for guest request to blank the virtual monitor (VBVA_SCREEN_F_BLANK2)

File:
1 edited

Legend:

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

    r63606 r63822  
    40724072    }
    40734073
     4074    VBVAINFOSCREEN screenInfo;
     4075    RT_ZERO(screenInfo);
     4076
     4077    if (pScreen->u16Flags & VBVA_SCREEN_F_BLANK2)
     4078    {
     4079        /* Init a local VBVAINFOSCREEN structure, which will be used instead of
     4080         * the original pScreen. Set VBVA_SCREEN_F_BLANK, which will force
     4081         * the code below to choose the "blanking" branches.
     4082         */
     4083        screenInfo.u32ViewIndex    = pScreen->u32ViewIndex;
     4084        screenInfo.i32OriginX      = pFBInfo->xOrigin;
     4085        screenInfo.i32OriginY      = pFBInfo->yOrigin;
     4086        screenInfo.u32StartOffset  = 0; /* Irrelevant */
     4087        screenInfo.u32LineSize     = pFBInfo->u32LineSize;
     4088        screenInfo.u32Width        = pFBInfo->w;
     4089        screenInfo.u32Height       = pFBInfo->h;
     4090        screenInfo.u16BitsPerPixel = pFBInfo->u16BitsPerPixel;
     4091        screenInfo.u16Flags        = pScreen->u16Flags | VBVA_SCREEN_F_BLANK;
     4092
     4093        pScreen = &screenInfo;
     4094    }
     4095
    40744096    /* If display was disabled or there is no framebuffer, a resize will be required,
    40754097     * because the framebuffer was/will be changed.
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