From b4f50046ff4a89e4db87a9d8c8fa6288fb970ede Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 11 Feb 2009 16:39:33 +0000 Subject: [PATCH] define CSR_DEFAULT_CURSOR_SIZE instead of hardcoding the value in 3 different places svn path=/trunk/; revision=39552 --- reactos/subsystems/win32/csrss/include/conio.h | 2 ++ reactos/subsystems/win32/csrss/win32csr/conio.c | 4 ++-- reactos/subsystems/win32/csrss/win32csr/guiconsole.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/subsystems/win32/csrss/include/conio.h b/reactos/subsystems/win32/csrss/include/conio.h index 5834928eaea..fa6320f8e00 100644 --- a/reactos/subsystems/win32/csrss/include/conio.h +++ b/reactos/subsystems/win32/csrss/include/conio.h @@ -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 diff --git a/reactos/subsystems/win32/csrss/win32csr/conio.c b/reactos/subsystems/win32/csrss/win32csr/conio.c index a3bb179a676..b4e88c7df3d 100644 --- a/reactos/subsystems/win32/csrss/win32csr/conio.c +++ b/reactos/subsystems/win32/csrss/win32csr/conio.c @@ -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) diff --git a/reactos/subsystems/win32/csrss/win32csr/guiconsole.c b/reactos/subsystems/win32/csrss/win32csr/guiconsole.c index e907d9f320b..ff5cbf3f34d 100644 --- a/reactos/subsystems/win32/csrss/win32csr/guiconsole.c +++ b/reactos/subsystems/win32/csrss/win32csr/guiconsole.c @@ -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; } }