mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 00:28:56 +00:00
[CONSRV]: Fix erroneous X-offset when copying text lines.
svn path=/trunk/; revision=63586
This commit is contained in:
parent
01a82ca2fc
commit
9d7a2a09db
|
@ -203,7 +203,7 @@ CopyLines(PTEXTMODE_SCREEN_BUFFER Buffer,
|
||||||
xBeg = (yPos == Begin->Y ? Begin->X : 0);
|
xBeg = (yPos == Begin->Y ? Begin->X : 0);
|
||||||
xEnd = (yPos == End->Y ? End->X : Buffer->ScreenBufferSize.X - 1);
|
xEnd = (yPos == End->Y ? End->X : Buffer->ScreenBufferSize.X - 1);
|
||||||
|
|
||||||
ptr = ConioCoordToPointer(Buffer, xBeg, yPos);
|
ptr = ConioCoordToPointer(Buffer, 0, yPos);
|
||||||
|
|
||||||
/* Copy only the characters, leave attributes alone */
|
/* Copy only the characters, leave attributes alone */
|
||||||
for (xPos = xBeg; (xPos <= xEnd) && (NumChars-- > 0); xPos++)
|
for (xPos = xBeg; (xPos <= xEnd) && (NumChars-- > 0); xPos++)
|
||||||
|
|
Loading…
Reference in a new issue