[CONSRV] Rephrase/complete some comments.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 8 Feb 2020 23:18:40 +0000 (00:18 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 8 Feb 2020 23:37:43 +0000 (00:37 +0100)
win32ss/user/winsrv/consrv/condrv/graphics.c
win32ss/user/winsrv/consrv/conoutput.c
win32ss/user/winsrv/consrv/console.c
win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
win32ss/user/winsrv/consrv/frontends/gui/guiterm.c

index cc168cb..04341c6 100644 (file)
@@ -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);
index b09e701..0f8bc2b 100644 (file)
@@ -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,
index 80a2f4c..b4e4668 100644 (file)
@@ -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;
index 633317c..ffc6939 100644 (file)
@@ -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;
 
index afca593..1014294 100644 (file)
@@ -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