mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 02:50:55 +00:00
[NTVDM]
Fix the default cursor size and cursor size calculation. svn path=/branches/ntvdm/; revision=59672
This commit is contained in:
parent
94b6893a01
commit
12b2347206
|
@ -37,7 +37,7 @@ static BYTE VideoMode_40x25_text[] =
|
|||
0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0E, 0x0F, 0xFF,
|
||||
|
||||
/* CRTC Registers */
|
||||
0x2D, 0x27, 0x28, 0x90, 0x2B, 0xA0, 0xBF, 0x1F, 0x00, 0x4F, 0x0E, 0x0F,
|
||||
0x2D, 0x27, 0x28, 0x90, 0x2B, 0xA0, 0xBF, 0x1F, 0x00, 0x4F, 0x0D, 0x0F,
|
||||
0x00, 0x00, 0x00, 0x00, 0x9C, 0x8E, 0x8F, 0x14, 0x1F, 0x96, 0xB9, 0xA3,
|
||||
0xFF,
|
||||
|
||||
|
@ -58,7 +58,7 @@ static BYTE VideoMode_80x25_text[] =
|
|||
0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0E, 0x0F, 0xFF,
|
||||
|
||||
/* CRTC Registers */
|
||||
0x5F, 0x4F, 0x50, 0x82, 0x55, 0x81, 0xBF, 0x1F, 0x00, 0x4F, 0x0E, 0x0F,
|
||||
0x5F, 0x4F, 0x50, 0x82, 0x55, 0x81, 0xBF, 0x1F, 0x00, 0x4F, 0x0D, 0x0F,
|
||||
0x00, 0x00, 0x00, 0x00, 0x9C, 0x8E, 0x8F, 0x28, 0x1F, 0x96, 0xB9, 0xA3,
|
||||
0xFF,
|
||||
|
||||
|
|
|
@ -502,6 +502,7 @@ static VOID VgaUpdateTextCursor(VOID)
|
|||
BYTE CursorStart = VgaCrtcRegisters[VGA_CRTC_CURSOR_START_REG] & 0x3F;
|
||||
BYTE CursorEnd = VgaCrtcRegisters[VGA_CRTC_CURSOR_END_REG] & 0x1F;
|
||||
DWORD ScanlineSize = (DWORD)VgaCrtcRegisters[VGA_CRTC_OFFSET_REG] * 2;
|
||||
BYTE TextSize = 1 + (VgaCrtcRegisters[VGA_CRTC_MAX_SCAN_LINE_REG] & 0x1F);
|
||||
WORD Location = MAKEWORD(VgaCrtcRegisters[VGA_CRTC_CURSOR_LOC_LOW_REG],
|
||||
VgaCrtcRegisters[VGA_CRTC_CURSOR_LOC_HIGH_REG]);
|
||||
|
||||
|
@ -509,7 +510,7 @@ static VOID VgaUpdateTextCursor(VOID)
|
|||
{
|
||||
/* Visible cursor */
|
||||
CursorInfo.bVisible = TRUE;
|
||||
CursorInfo.dwSize = (100 * (CursorEnd - CursorStart)) >> 5;
|
||||
CursorInfo.dwSize = (100 * (CursorEnd - CursorStart)) / TextSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue