Changeset 77954 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Mar 29, 2019 5:13:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r77952 r77954 1480 1480 1481 1481 /* Sanitize values. */ 1482 uFifoPitchLock = (uint16_t)uFifoPitchLock; 1483 uRegPitchLock = (uint16_t)uFifoPitchLock; 1482 if ((uFifoPitchLock < 200) || (uFifoPitchLock > 32768)) 1483 uFifoPitchLock = 0; 1484 if ((uRegPitchLock < 200) || (uRegPitchLock > 32768)) 1485 uRegPitchLock = 0; 1484 1486 1485 1487 /* Prefer the register value to the FIFO value.*/ 1486 if ( pThis->svga.u32PitchLock)1488 if (uRegPitchLock) 1487 1489 pThis->svga.cbScanline = pThis->svga.u32PitchLock; 1488 if (uFifoPitchLock)1490 else if (uFifoPitchLock) 1489 1491 pThis->svga.cbScanline = uFifoPitchLock; 1490 1492 else
Note:
See TracChangeset
for help on using the changeset viewer.