VirtualBox

Changeset 77954 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Mar 29, 2019 5:13:58 PM (6 years ago)
Author:
vboxsync
Message:

SVGA: Fixed thinkos (bugref:9424).

File:
1 edited

Legend:

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

    r77952 r77954  
    14801480
    14811481    /* 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;
    14841486
    14851487    /* Prefer the register value to the FIFO value.*/
    1486     if (pThis->svga.u32PitchLock)
     1488    if (uRegPitchLock)
    14871489        pThis->svga.cbScanline = pThis->svga.u32PitchLock;
    1488     if (uFifoPitchLock)
     1490    else if (uFifoPitchLock)
    14891491        pThis->svga.cbScanline = uFifoPitchLock;
    14901492    else
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