mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
also scroll the selection
svn path=/trunk/; revision=19720
This commit is contained in:
parent
8da9b240f0
commit
45cbca82e7
1 changed files with 19 additions and 0 deletions
|
@ -502,6 +502,25 @@ GuiWriteStream(PCSRSS_CONSOLE Console, RECT *Region, LONG CursorStartX, LONG Cur
|
|||
ScrollRect.right = Console->Size.X * GuiData->CharWidth;
|
||||
ScrollRect.bottom = Region->top * GuiData->CharHeight;
|
||||
|
||||
if (GuiData->Selection.left != -1)
|
||||
{
|
||||
/* scroll the selection */
|
||||
if (GuiData->Selection.top > ScrolledLines)
|
||||
{
|
||||
GuiData->Selection.top -= ScrolledLines;
|
||||
GuiData->Selection.bottom -= ScrolledLines;
|
||||
}
|
||||
else if (GuiData->Selection.bottom < ScrolledLines)
|
||||
{
|
||||
GuiData->Selection.left = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
GuiData->Selection.top = 0;
|
||||
GuiData->Selection.bottom -= ScrolledLines;
|
||||
}
|
||||
}
|
||||
|
||||
ScrollWindowEx(Console->hWindow,
|
||||
0,
|
||||
-(ScrolledLines * GuiData->CharHeight),
|
||||
|
|
Loading…
Reference in a new issue