VirtualBox

Changeset 78011 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2019 7:49:21 AM (6 years ago)
Author:
vboxsync
Message:

DevVGA-SVGA: use VBVA interface to update screen. bugref:9430

File:
1 edited

Legend:

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

    r77958 r78011  
    14191419int vmsvgaUpdateScreen(PVGASTATE pThis, VMSVGASCREENOBJECT *pScreen, int x, int y, int w, int h)
    14201420{
    1421     if (pThis->svga.fGFBRegisters)
    1422     {
    1423         vgaR3UpdateDisplay(pThis, x, y, w, h);
    1424     }
    1425     else
    1426     {
    1427         VBVACMDHDR cmd;
    1428         cmd.x = (int16_t)(pScreen->xOrigin + x);
    1429         cmd.y = (int16_t)(pScreen->yOrigin + y);
    1430         cmd.w = (uint16_t)w;
    1431         cmd.h = (uint16_t)h;
    1432 
    1433         pThis->pDrv->pfnVBVAUpdateBegin(pThis->pDrv, pScreen->idScreen);
    1434         pThis->pDrv->pfnVBVAUpdateProcess(pThis->pDrv, pScreen->idScreen, &cmd, sizeof(cmd));
    1435         pThis->pDrv->pfnVBVAUpdateEnd(pThis->pDrv, pScreen->idScreen,
    1436                                       pScreen->xOrigin + x, pScreen->yOrigin + y, w, h);
    1437     }
     1421    VBVACMDHDR cmd;
     1422    cmd.x = (int16_t)(pScreen->xOrigin + x);
     1423    cmd.y = (int16_t)(pScreen->yOrigin + y);
     1424    cmd.w = (uint16_t)w;
     1425    cmd.h = (uint16_t)h;
     1426
     1427    pThis->pDrv->pfnVBVAUpdateBegin(pThis->pDrv, pScreen->idScreen);
     1428    pThis->pDrv->pfnVBVAUpdateProcess(pThis->pDrv, pScreen->idScreen, &cmd, sizeof(cmd));
     1429    pThis->pDrv->pfnVBVAUpdateEnd(pThis->pDrv, pScreen->idScreen,
     1430                                  pScreen->xOrigin + x, pScreen->yOrigin + y, w, h);
    14381431
    14391432    return VINF_SUCCESS;
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