mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00: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:
parent
9b69a9ef93
commit
b4f50046ff
3 changed files with 5 additions and 3 deletions
|
@ -12,6 +12,8 @@
|
||||||
#include "api.h"
|
#include "api.h"
|
||||||
#include "win32csr.h"
|
#include "win32csr.h"
|
||||||
|
|
||||||
|
#define CSR_DEFAULT_CURSOR_SIZE 25
|
||||||
|
|
||||||
/* Object type magic numbers */
|
/* Object type magic numbers */
|
||||||
|
|
||||||
#define CONIO_CONSOLE_MAGIC 0x00000001
|
#define CONIO_CONSOLE_MAGIC 0x00000001
|
||||||
|
|
|
@ -184,7 +184,7 @@ CsrInitConsole(PCSRSS_CONSOLE Console)
|
||||||
}
|
}
|
||||||
/* init screen buffer with defaults */
|
/* init screen buffer with defaults */
|
||||||
NewBuffer->CursorInfo.bVisible = TRUE;
|
NewBuffer->CursorInfo.bVisible = TRUE;
|
||||||
NewBuffer->CursorInfo.dwSize = 5;
|
NewBuffer->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
|
||||||
/* make console active, and insert into console list */
|
/* make console active, and insert into console list */
|
||||||
Console->ActiveBuffer = (PCSRSS_SCREEN_BUFFER) NewBuffer;
|
Console->ActiveBuffer = (PCSRSS_SCREEN_BUFFER) NewBuffer;
|
||||||
|
|
||||||
|
@ -1995,7 +1995,7 @@ CSR_API(CsrCreateScreenBuffer)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Buff->CursorInfo.bVisible = TRUE;
|
Buff->CursorInfo.bVisible = TRUE;
|
||||||
Buff->CursorInfo.dwSize = 5;
|
Buff->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Buff->MaxX == 0)
|
if (Buff->MaxX == 0)
|
||||||
|
|
|
@ -627,7 +627,7 @@ GuiConsoleUseDefaults(PCSRSS_CONSOLE Console, PGUI_CONSOLE_DATA GuiData, PCSRSS_
|
||||||
Buffer->MaxX = 80;
|
Buffer->MaxX = 80;
|
||||||
Buffer->MaxY = 25;
|
Buffer->MaxY = 25;
|
||||||
Buffer->CursorInfo.bVisible = TRUE;
|
Buffer->CursorInfo.bVisible = TRUE;
|
||||||
Buffer->CursorInfo.dwSize = 5;
|
Buffer->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue