define CSR_DEFAULT_CURSOR_SIZE instead of hardcoding the value in 3 different places

svn path=/trunk/; revision=39552
This commit is contained in:
Christoph von Wittich 2009-02-11 16:39:33 +00:00
parent 9b69a9ef93
commit b4f50046ff
3 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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)

View file

@ -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;
}
}