mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
Support an arbitrary length for ReactOS version text
svn path=/trunk/; revision=31807
This commit is contained in:
parent
0513bf6885
commit
8f5ee036a8
1 changed files with 9 additions and 6 deletions
|
@ -263,12 +263,11 @@ BOOLEAN SetupUiInitialize(VOID)
|
|||
{
|
||||
VIDEODISPLAYMODE UiDisplayMode;
|
||||
CHAR DisplayModeText[260];
|
||||
ULONG Depth;
|
||||
ULONG Depth, Length;
|
||||
|
||||
|
||||
DisplayModeText[0] = '\0';
|
||||
|
||||
|
||||
UiDisplayMode = MachVideoSetDisplayMode(DisplayModeText, TRUE);
|
||||
MachVideoGetDisplaySize(&UiScreenWidth, &UiScreenHeight, &Depth);
|
||||
|
||||
|
@ -286,8 +285,12 @@ BOOLEAN SetupUiInitialize(VOID)
|
|||
UiDrawTime = FALSE;
|
||||
UiStatusBarBgColor = 7;
|
||||
|
||||
Length = strlen("ReactOS " KERNEL_VERSION_STR " Setup");
|
||||
memset(DisplayModeText, 0xcd, Length + 2);
|
||||
DisplayModeText[Length + 2] = '\0';
|
||||
|
||||
UiVtbl.DrawText(4, 1, "ReactOS " KERNEL_VERSION_STR " Setup", ATTR(COLOR_GRAY, UiBackdropBgColor));
|
||||
UiVtbl.DrawText(3, 2, "\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD", ATTR(COLOR_GRAY, UiBackdropBgColor));
|
||||
UiVtbl.DrawText(3, 2, DisplayModeText, ATTR(COLOR_GRAY, UiBackdropBgColor));
|
||||
|
||||
DbgPrint((DPRINT_UI, "UiInitialize() returning TRUE.\n"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue