Changeset 88544 in vbox for trunk/src/VBox
- Timestamp:
- Apr 15, 2021 1:06:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r88538 r88544 1698 1698 pThis->svga.cbScanline = uFifoPitchLock; 1699 1699 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); 1701 1701 1702 1702 if ((uFifoMin / sizeof(uint32_t)) <= SVGA_FIFO_PITCHLOCK) … … 1921 1921 case SVGA_REG_BITS_PER_PIXEL: /* Current bpp in the guest */ 1922 1922 STAM_REL_COUNTER_INC(&pThis->svga.StatRegBitsPerPixelWr); 1923 if ( pThis->svga.uBpp != u32)1923 if (u32 <= 32 && pThis->svga.uBpp != u32) 1924 1924 { 1925 1925 #if defined(IN_RING3) || defined(IN_RING0)
Note:
See TracChangeset
for help on using the changeset viewer.