Changeset 93796 in vbox for trunk/src/VBox
- Timestamp:
- Feb 16, 2022 4:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r93115 r93796 1698 1698 /** 1699 1699 * Text mode update 1700 * Missing:1701 * - underline1702 1700 */ 1703 1701 static int vgaR3DrawText(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATER3 pThisCC, bool full_update, … … 1718 1716 bool blink_on, chr_blink_flip, cur_blink_flip; 1719 1717 bool blink_enabled, blink_do_redraw; 1718 int uline_pos; 1720 1719 1721 1720 full_update |= vgaR3UpdatePalette16(pThis, pThisCC); … … 1837 1836 } 1838 1837 blink_enabled = !!(pThis->ar[0x10] & 0x08); /* Attribute controller blink enable. */ 1838 1839 /* Underline position */ 1840 uline_pos = pThis->cr[0x14] & 0x1f; 1839 1841 1840 1842 for(cy = 0; cy < (height - dscan); cy = cy + (1 << dscan)) { … … 1883 1885 vga_draw_glyph9(d1, linesize, font_ptr, cheight, fgcol, bgcol, dup9); 1884 1886 } 1887 1888 /* Underline. Typically turned off by setting it past cell height. */ 1889 if (((cattr & 0x03) == 1) && (uline_pos < cheight)) 1890 { 1891 int h; 1892 1893 d = d1 + (linesize * uline_pos << dscan); 1894 h = 1; 1895 1896 if (cw != 9) { 1897 if (pThis->fRenderVRAM) 1898 vga_draw_glyph8(d, linesize, cursor_glyph, h, fgcol, bgcol, dscan); 1899 } else { 1900 if (pThis->fRenderVRAM) 1901 vga_draw_glyph9(d, linesize, cursor_glyph, h, fgcol, bgcol, 1); 1902 } 1903 } 1904 1905 /* Cursor. */ 1885 1906 if (src == cursor_ptr && 1886 1907 !(pThis->cr[0x0a] & 0x20)) {
Note:
See TracChangeset
for help on using the changeset viewer.