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;
|
VIDEODISPLAYMODE UiDisplayMode;
|
||||||
CHAR DisplayModeText[260];
|
CHAR DisplayModeText[260];
|
||||||
ULONG Depth;
|
ULONG Depth, Length;
|
||||||
|
|
||||||
|
|
||||||
DisplayModeText[0] = '\0';
|
DisplayModeText[0] = '\0';
|
||||||
|
|
||||||
|
|
||||||
UiDisplayMode = MachVideoSetDisplayMode(DisplayModeText, TRUE);
|
UiDisplayMode = MachVideoSetDisplayMode(DisplayModeText, TRUE);
|
||||||
MachVideoGetDisplaySize(&UiScreenWidth, &UiScreenHeight, &Depth);
|
MachVideoGetDisplaySize(&UiScreenWidth, &UiScreenHeight, &Depth);
|
||||||
|
|
||||||
|
@ -283,11 +282,15 @@ BOOLEAN SetupUiInitialize(VOID)
|
||||||
0,
|
0,
|
||||||
ATTR(UiBackdropFgColor, UiBackdropBgColor));
|
ATTR(UiBackdropFgColor, UiBackdropBgColor));
|
||||||
|
|
||||||
UiDrawTime = FALSE;
|
UiDrawTime = FALSE;
|
||||||
UiStatusBarBgColor = 7;
|
UiStatusBarBgColor = 7;
|
||||||
|
|
||||||
UiVtbl.DrawText(4, 1, "ReactOS " KERNEL_VERSION_STR " Setup", ATTR(COLOR_GRAY, UiBackdropBgColor));
|
Length = strlen("ReactOS " KERNEL_VERSION_STR " Setup");
|
||||||
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));
|
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, DisplayModeText, ATTR(COLOR_GRAY, UiBackdropBgColor));
|
||||||
|
|
||||||
DbgPrint((DPRINT_UI, "UiInitialize() returning TRUE.\n"));
|
DbgPrint((DPRINT_UI, "UiInitialize() returning TRUE.\n"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue