VirtualBox

Changeset 2212 in vbox for trunk


Ignore:
Timestamp:
Apr 19, 2007 11:24:47 AM (18 years ago)
Author:
vboxsync
Message:

Repaint display when framebuffer completed an asynchronous resize.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r2210 r2212  
    273273
    274274    /* The method also unlocks the framebuffer. */
    275     handleResizeCompletedEMT();
     275    handleResizeCompletedEMT(false /* fAsync */);
    276276
    277277    return VINF_SUCCESS;
     
    284284 *  @thread EMT
    285285 */
    286 void Display::handleResizeCompletedEMT (void)
     286void Display::handleResizeCompletedEMT (bool fAsync)
    287287{
    288288    LogFlowFunc(("\n"));
     
    323323    AssertRelease(f);NOREF(f);
    324324
    325     /* Repaint the display. This could lead to a new call to handleDisplayResize, so do this after the status change. */
    326     // @todo mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort);
     325    if (fAsync)
     326    {
     327        /* Repaint the display, but only if the resize was asynchronous. That is only
     328         * when VINF_VGA_RESIZE_IN_PROGRESS was returned to the VGA device and VM continued
     329         * to run during the framebuffer resize. */
     330        mpDrv->pUpPort->pfnUpdateDisplayAll(mpDrv->pUpPort);
     331    }
    327332}
    328333
     
    17951800        LogFlowFunc (("ResizeStatus_UpdateDisplayData\n"));
    17961801        /* The framebuffer was resized and display data need to be updated. */
    1797         pDisplay->handleResizeCompletedEMT ();
     1802        pDisplay->handleResizeCompletedEMT (true /* fAsync */);
    17981803        /* Continue with normal processing because the status here is ResizeStatus_Void. */
    17991804        Assert (pDisplay->mu32ResizeStatus == ResizeStatus_Void);
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r2106 r2212  
    185185    void vbvaReleaseCmd (VBVACMDHDR *pHdr, int32_t cbCmd);
    186186
    187     void handleResizeCompletedEMT (void);
     187    void handleResizeCompletedEMT (bool fAsync);
    188188    volatile uint32_t mu32ResizeStatus;
    189189   
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