Author: aandrejevic Date: Fri May 9 00:23:19 2014 New Revision: 63200
URL: http://svn.reactos.org/svn/reactos?rev=63200&view=rev Log: [NTVDM] Add a comment which explains the weird check for odd-numbered lines.
Modified: trunk/reactos/subsystems/ntvdm/hardware/vga.c
Modified: trunk/reactos/subsystems/ntvdm/hardware/vga.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/hardware/v... ============================================================================== --- trunk/reactos/subsystems/ntvdm/hardware/vga.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/ntvdm/hardware/vga.c [iso-8859-1] Fri May 9 00:23:19 2014 @@ -1205,6 +1205,7 @@ 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 */