From 67bc39db3149ce985f9e5756a7a96e8d5604241d Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Fri, 9 May 2014 00:23:19 +0000 Subject: [PATCH] [NTVDM] Add a comment which explains the weird check for odd-numbered lines. svn path=/trunk/; revision=63200 --- reactos/subsystems/ntvdm/hardware/vga.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/subsystems/ntvdm/hardware/vga.c b/reactos/subsystems/ntvdm/hardware/vga.c index 81ef70b7540..870cda9a63d 100644 --- a/reactos/subsystems/ntvdm/hardware/vga.c +++ b/reactos/subsystems/ntvdm/hardware/vga.c @@ -1205,6 +1205,7 @@ static VOID VgaUpdateFramebuffer(VOID) DWORD Offset = Address + (j / 8); BYTE LowPlaneData, HighPlaneData; + /* Check if the 0-based index is divisible by 2. If so, the 1-based index is an odd number. */ if (i % 2 == 0) { /* Odd-numbered line - add the CGA emulation offset */