mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 13:44:23 +08:00
define CSR_DEFAULT_CURSOR_SIZE instead of hardcoding the value in 3 different places
svn path=/trunk/; revision=39552
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
#include "api.h"
|
||||
#include "win32csr.h"
|
||||
|
||||
#define CSR_DEFAULT_CURSOR_SIZE 25
|
||||
|
||||
/* Object type magic numbers */
|
||||
|
||||
#define CONIO_CONSOLE_MAGIC 0x00000001
|
||||
|
||||
@@ -184,7 +184,7 @@ CsrInitConsole(PCSRSS_CONSOLE Console)
|
||||
}
|
||||
/* init screen buffer with defaults */
|
||||
NewBuffer->CursorInfo.bVisible = TRUE;
|
||||
NewBuffer->CursorInfo.dwSize = 5;
|
||||
NewBuffer->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
|
||||
/* make console active, and insert into console list */
|
||||
Console->ActiveBuffer = (PCSRSS_SCREEN_BUFFER) NewBuffer;
|
||||
|
||||
@@ -1995,7 +1995,7 @@ CSR_API(CsrCreateScreenBuffer)
|
||||
else
|
||||
{
|
||||
Buff->CursorInfo.bVisible = TRUE;
|
||||
Buff->CursorInfo.dwSize = 5;
|
||||
Buff->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
|
||||
}
|
||||
|
||||
if (Buff->MaxX == 0)
|
||||
|
||||
@@ -627,7 +627,7 @@ GuiConsoleUseDefaults(PCSRSS_CONSOLE Console, PGUI_CONSOLE_DATA GuiData, PCSRSS_
|
||||
Buffer->MaxX = 80;
|
||||
Buffer->MaxY = 25;
|
||||
Buffer->CursorInfo.bVisible = TRUE;
|
||||
Buffer->CursorInfo.dwSize = 5;
|
||||
Buffer->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user