VirtualBox

Changeset 77915 in vbox for trunk


Ignore:
Timestamp:
Mar 27, 2019 12:41:27 PM (6 years ago)
Author:
vboxsync
Message:

VMSVGA: Calculate pitch when width or bpp is set. See bugref:9424

File:
1 edited

Legend:

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

    r77869 r77915  
    15941594        {
    15951595            pThis->svga.uWidth = u32;
     1596            pThis->svga.cbScanline = pThis->svga.uWidth * (RT_ALIGN(pThis->svga.uBpp, 8) / 8);
    15961597            if (pThis->svga.fEnabled)
    15971598            {
     
    16251626        {
    16261627            pThis->svga.uBpp = u32;
     1628            pThis->svga.cbScanline = pThis->svga.uWidth * (RT_ALIGN(pThis->svga.uBpp, 8) / 8);
    16271629            if (pThis->svga.fEnabled)
    16281630            {
     
    54575459    pHlp->pfnPrintf(pHlp, "3D enabled:         %RTbool\n", pThis->svga.f3DEnabled);
    54585460# endif
     5461    if (pThis->pDrv)
     5462    {
     5463        pHlp->pfnPrintf(pHlp, "Driver mode:        %ux%u %ubpp\n", pThis->pDrv->cx, pThis->pDrv->cy, pThis->pDrv->cBits);
     5464        pHlp->pfnPrintf(pHlp, "Driver pitch:       %u (%#x)\n", pThis->pDrv->cbScanline, pThis->pDrv->cbScanline);
     5465    }
    54595466}
    54605467
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