Author: hpoussin Date: Tue Jan 15 11:20:39 2008 New Revision: 31807
URL: http://svn.reactos.org/svn/reactos?rev=31807&view=rev Log: Support an arbitrary length for ReactOS version text
Modified: trunk/reactos/boot/freeldr/freeldr/ui/ui.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/ui.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/ui/ui.... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/ui/ui.c (original) +++ trunk/reactos/boot/freeldr/freeldr/ui/ui.c Tue Jan 15 11:20:39 2008 @@ -263,11 +263,10 @@ { VIDEODISPLAYMODE UiDisplayMode; CHAR DisplayModeText[260]; - ULONG Depth; + ULONG Depth, Length;
DisplayModeText[0] = '\0'; -
UiDisplayMode = MachVideoSetDisplayMode(DisplayModeText, TRUE); MachVideoGetDisplaySize(&UiScreenWidth, &UiScreenHeight, &Depth); @@ -283,11 +282,15 @@ 0, ATTR(UiBackdropFgColor, UiBackdropBgColor));
- UiDrawTime = FALSE; - UiStatusBarBgColor = 7; - - 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)); + 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, DisplayModeText, ATTR(COLOR_GRAY, UiBackdropBgColor));
DbgPrint((DPRINT_UI, "UiInitialize() returning TRUE.\n"));