VirtualBox

Changeset 2798 in vbox


Ignore:
Timestamp:
May 23, 2007 11:32:31 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21408
Message:

Framebuffer, which does not use the guest VRAM directly, must be updated before the update is passed to VRDP server.

File:
1 edited

Legend:

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

    r2417 r2798  
    433433    PPDMIDISPLAYPORT  pPort;
    434434
     435    /* The Framebuffer has default format and must be updates immediately. */
     436    bool fDefaultFormat;
     437
    435438    /* Merged rectangles. */
    436439    int32_t xLeft;
     
    448451    prgn->pDisplay = pd;
    449452    prgn->pPort = pp;
     453
     454    if (pfb)
     455    {
     456        FramebufferPixelFormat_T pixelFormat;
     457        pfb->COMGETTER(PixelFormat) (&pixelFormat);
     458        prgn->fDefaultFormat = (pixelFormat == FramebufferPixelFormat_PixelFormatDefault);
     459    }
    450460
    451461    return;
     
    505515    }
    506516
     517    if (prgn->fDefaultFormat)
     518    {
     519        prgn->pPort->pfnUpdateDisplayRect (prgn->pPort, phdr->x, phdr->y, phdr->w, phdr->h);
     520        prgn->pDisplay->handleDisplayUpdate (phdr->x, phdr->y, phdr->w, phdr->h);
     521    }
     522
    507523    return;
    508524}
     
    513529    uint32_t h = prgn->yBottom - prgn->yTop;
    514530
    515     if (prgn->pFramebuffer && w != 0 && h != 0)
     531    if (!prgn->fDefaultFormat && prgn->pFramebuffer && w != 0 && h != 0)
    516532    {
    517533        prgn->pPort->pfnUpdateDisplayRect (prgn->pPort, prgn->xLeft, prgn->yTop, w, h);
Note: See TracChangeset for help on using the changeset viewer.

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