mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:23:01 +00:00
[CONSRV] Rephrase/complete some comments.
This commit is contained in:
parent
b4e40f21c3
commit
07f8b9fe09
5 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue