VirtualBox

Changeset 88544 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 15, 2021 1:06:24 PM (4 years ago)
Author:
vboxsync
Message:

3D/VMSVGA: Skip unsupported bpp values, bugref:9992

File:
1 edited

Legend:

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

    r88538 r88544  
    16981698        pThis->svga.cbScanline = uFifoPitchLock;
    16991699    else
    1700         pThis->svga.cbScanline = pThis->svga.uWidth * (RT_ALIGN(pThis->svga.uBpp, 8) / 8);
     1700        pThis->svga.cbScanline = (uint32_t)pThis->svga.uWidth * (RT_ALIGN(pThis->svga.uBpp, 8) / 8);
    17011701
    17021702    if ((uFifoMin / sizeof(uint32_t)) <= SVGA_FIFO_PITCHLOCK)
     
    19211921        case SVGA_REG_BITS_PER_PIXEL:      /* Current bpp in the guest */
    19221922            STAM_REL_COUNTER_INC(&pThis->svga.StatRegBitsPerPixelWr);
    1923             if (pThis->svga.uBpp != u32)
     1923            if (u32 <= 32 && pThis->svga.uBpp != u32)
    19241924            {
    19251925#if defined(IN_RING3) || defined(IN_RING0)
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