Author: cwittich
Date: Wed Feb 11 10:39:33 2009
New Revision: 39552
URL:
http://svn.reactos.org/svn/reactos?rev=39552&view=rev
Log:
define CSR_DEFAULT_CURSOR_SIZE instead of hardcoding the value in 3 different places
Modified:
trunk/reactos/subsystems/win32/csrss/include/conio.h
trunk/reactos/subsystems/win32/csrss/win32csr/conio.c
trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c
Modified: trunk/reactos/subsystems/win32/csrss/include/conio.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/inc…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/include/conio.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/include/conio.h [iso-8859-1] Wed Feb 11 10:39:33
2009
@@ -11,6 +11,8 @@
#include "api.h"
#include "win32csr.h"
+
+#define CSR_DEFAULT_CURSOR_SIZE 25
/* Object type magic numbers */
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/conio.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/conio.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/conio.c [iso-8859-1] Wed Feb 11 10:39:33
2009
@@ -184,7 +184,7 @@
}
/* 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 @@
else
{
Buff->CursorInfo.bVisible = TRUE;
- Buff->CursorInfo.dwSize = 5;
+ Buff->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
}
if (Buff->MaxX == 0)
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c [iso-8859-1] Wed Feb 11
10:39:33 2009
@@ -627,7 +627,7 @@
Buffer->MaxX = 80;
Buffer->MaxY = 25;
Buffer->CursorInfo.bVisible = TRUE;
- Buffer->CursorInfo.dwSize = 5;
+ Buffer->CursorInfo.dwSize = CSR_DEFAULT_CURSOR_SIZE;
}
}