VirtualBox

Changeset 93840 in vbox


Ignore:
Timestamp:
Feb 18, 2022 2:10:50 PM (3 years ago)
Author:
vboxsync
Message:

DevVGA: Changing blink enable or underline location needs to trigger a full screen redraw.

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

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

    r93827 r93840  
    17421742        full_update = true;
    17431743    }
     1744
     1745    /* Underline position */
     1746    uline_pos  = pThis->cr[0x14] & 0x1f;
     1747    if (uline_pos != pThis->last_uline) {
     1748        pThis->last_uline = uline_pos;
     1749        full_update = true;
     1750    }
     1751
     1752    blink_enabled = !!(pThis->ar[0x10] & 0x08); /* Attribute controller blink enable. */
     1753    if (blink_enabled != pThis->last_blink) {
     1754        pThis->last_blink = blink_enabled;
     1755        full_update = true;
     1756    }
     1757
    17441758    full_update |= vgaR3UpdateBasicParams(pThis, pThisCC);
    17451759
     
    18351849        cur_blink_flip = true;
    18361850    }
    1837     blink_enabled = !!(pThis->ar[0x10] & 0x08); /* Attribute controller blink enable. */
    1838 
    1839     /* Underline position */
    1840     uline_pos  = pThis->cr[0x14] & 0x1f;
    18411851
    18421852    for(cy = 0; cy < (height - dscan); cy = cy + (1 << dscan)) {
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r93115 r93840  
    321321    uint32_t start_addr;
    322322    uint32_t plane_updated;
    323     uint8_t last_cw, last_ch, padding2[2];
     323    uint8_t last_cw, last_ch;
     324    uint8_t last_uline;                                                 \
     325    bool last_blink;                                                    \
    324326    uint32_t last_width, last_height; /* in chars or pixels */
    325327    uint32_t last_scr_width, last_scr_height; /* in pixels */
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