Author: aandrejevic Date: Fri May 9 00:34:10 2014 New Revision: 63201
URL: http://svn.reactos.org/svn/reactos?rev=63201&view=rev Log: [NTVDM] Fix the previous two fixes. Tests show that the first line is actually treated as an even-numbered line.
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:34:10 2014 @@ -1205,8 +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) + if (i % 2 != 0) { /* Odd-numbered line - add the CGA emulation offset */ Offset += VGA_CGA_ODD_LINE_OFFSET;