https://git.reactos.org/?p=reactos.git;a=commitdiff;h=07f8b9fe0939a562dfbef6...
commit 07f8b9fe0939a562dfbef6b44c51404d6801c485 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sun Feb 9 00:18:40 2020 +0100 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sun Feb 9 00:37:43 2020 +0100
[CONSRV] Rephrase/complete some comments. --- win32ss/user/winsrv/consrv/condrv/graphics.c | 2 +- win32ss/user/winsrv/consrv/conoutput.c | 6 +++--- win32ss/user/winsrv/consrv/console.c | 1 + win32ss/user/winsrv/consrv/frontends/gui/conwnd.c | 1 + win32ss/user/winsrv/consrv/frontends/gui/guiterm.c | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/win32ss/user/winsrv/consrv/condrv/graphics.c b/win32ss/user/winsrv/consrv/condrv/graphics.c index cc168cb8930..04341c6b663 100644 --- a/win32ss/user/winsrv/consrv/condrv/graphics.c +++ b/win32ss/user/winsrv/consrv/condrv/graphics.c @@ -71,7 +71,7 @@ GRAPHICS_BUFFER_Initialize(OUT PCONSOLE_SCREEN_BUFFER* Buffer, */ NewBuffer->ClientProcess = ProcessHandle;
- /* Get infos from the graphics buffer information structure */ + /* Get information from the graphics buffer information structure */ NewBuffer->BitMapInfoLength = GraphicsInfo->Info.dwBitMapInfoLength;
NewBuffer->BitMapInfo = ConsoleAllocHeap(HEAP_ZERO_MEMORY, NewBuffer->BitMapInfoLength); diff --git a/win32ss/user/winsrv/consrv/conoutput.c b/win32ss/user/winsrv/consrv/conoutput.c index b09e7012bdc..0f8bc2bd3d3 100644 --- a/win32ss/user/winsrv/consrv/conoutput.c +++ b/win32ss/user/winsrv/consrv/conoutput.c @@ -236,10 +236,10 @@ CSR_API(SrvCreateConsoleScreenBuffer) */
/* - * This is Windows' behaviour + * This is Windows behaviour. */
- /* Use the current console size. Regularize it if needed. */ + /* Use the current console size. Normalize it if needed */ TextModeInfo.ScreenBufferSize = Console->ConsoleSize; if (TextModeInfo.ScreenBufferSize.X == 0) TextModeInfo.ScreenBufferSize.X = 1; if (TextModeInfo.ScreenBufferSize.Y == 0) TextModeInfo.ScreenBufferSize.Y = 1; @@ -258,7 +258,7 @@ CSR_API(SrvCreateConsoleScreenBuffer) } else if (CreateScreenBufferRequest->ScreenBufferType == CONSOLE_GRAPHICS_BUFFER) { - /* Get infos from the graphics buffer information structure */ + /* Get information from the graphics buffer information structure */ if (!CsrValidateMessageBuffer(ApiMessage, (PVOID*)&CreateScreenBufferRequest->GraphicsBufferInfo.lpBitMapInfo, CreateScreenBufferRequest->GraphicsBufferInfo.dwBitMapInfoLength, diff --git a/win32ss/user/winsrv/consrv/console.c b/win32ss/user/winsrv/consrv/console.c index 80a2f4c0f23..b4e4668b5d5 100644 --- a/win32ss/user/winsrv/consrv/console.c +++ b/win32ss/user/winsrv/consrv/console.c @@ -1200,6 +1200,7 @@ CSR_API(SrvSetConsoleMode) { #define CONSOLE_VALID_CONTROL_MODES ( ENABLE_EXTENDED_FLAGS | \ ENABLE_INSERT_MODE | ENABLE_QUICK_EDIT_MODE ) +// NOTE: Vista+ ENABLE_AUTO_POSITION is also a control mode.
NTSTATUS Status; PCONSOLE_GETSETCONSOLEMODE ConsoleModeRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.ConsoleModeRequest; diff --git a/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c b/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c index 633317cd039..ffc6939aa0c 100644 --- a/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c +++ b/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c @@ -1255,6 +1255,7 @@ OnTimer(PGUI_CONSOLE_DATA GuiData)
if (GetType(Buff) == TEXTMODE_BUFFER) { + /* Repaint the caret */ InvalidateCell(GuiData, Buff->CursorPosition.X, Buff->CursorPosition.Y); Buff->CursorBlinkOn = !Buff->CursorBlinkOn;
diff --git a/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c b/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c index afca59331a6..10142943520 100644 --- a/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c +++ b/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c @@ -1238,7 +1238,7 @@ GuiLoadFrontEnd(IN OUT PFRONTEND FrontEnd, if ((ConsoleStartInfo->dwStartupFlags & STARTF_TITLEISLINKNAME) == 0) { #if 0 - /* Load the terminal infos from the registry */ + /* Load the terminal information from the registry */ GuiConsoleReadUserSettings(&GuiInitInfo->TermInfo); #endif