VirtualBox

Changeset 50552 in vbox


Ignore:
Timestamp:
Feb 24, 2014 9:34:35 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92406
Message:

DisplayImpl,DevVGA: take correct screenshot if VBVA is paused

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r50497 r50552  
    51605160    AssertRC(rc);
    51615161
     5162    /* This method only works if the VGA device is in a VBE mode. */
     5163    if ((pThis->vbe_regs[VBE_DISPI_INDEX_ENABLE] & VBE_DISPI_ENABLED) == 0)
     5164    {
     5165        PDMCritSectLeave(&pThis->CritSect);
     5166        return VERR_INVALID_STATE;
     5167    }
     5168
    51625169    vga_draw_line = vga_draw_line_table[v * 4 + get_depth_index(u32DstBitsPerPixel)];
    51635170
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r50413 r50552  
    26872687                {
    26882688                    RTMemFree(pu8Data);
     2689
     2690                    /* CopyRect can fail if VBVA was paused in VGA device, retry using the generic method. */
     2691                    if (   rc == VERR_INVALID_STATE
     2692                        && aScreenId == VBOX_VIDEO_PRIMARY_SCREEN)
     2693                    {
     2694                        rc = pDisplay->mpDrv->pUpPort->pfnTakeScreenshot(pDisplay->mpDrv->pUpPort,
     2695                                                                         ppu8Data, pcbData, pu32Width, pu32Height);
     2696                    }
    26892697                }
    26902698            }
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