Author: hbelusca
Date: Tue Dec 25 00:53:23 2012
New Revision: 58002
URL: http://svn.reactos.org/svn/reactos?rev=58002&view=rev
Log:
[FREELDR]
Use NULL string pointers as separators instead of a special "SEPARATOR" string.
Modified:
trunk/reactos/boot/freeldr/freeldr/options.c
trunk/reactos/boot/freeldr/freeldr/ui/directui.c
trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c
Modified: trunk/reactos/boot/freeldr/freeldr/options.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/optio…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/options.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/options.c [iso-8859-1] Tue Dec 25 00:53:23 2012
@@ -26,7 +26,7 @@
"Safe Mode with Networking",
"Safe Mode with Command Prompt",
- "SEPARATOR",
+ NULL,
"Enable Boot Logging",
"Enable VGA Mode",
@@ -35,7 +35,7 @@
"Debugging Mode",
"FreeLdr debugging",
- "SEPARATOR",
+ NULL,
#ifdef HAS_OPTION_MENU_CUSTOM_BOOT
"Custom Boot",
Modified: trunk/reactos/boot/freeldr/freeldr/ui/directui.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/ui/di…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/ui/directui.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/ui/directui.c [iso-8859-1] Tue Dec 25 00:53:23 2012
@@ -297,7 +297,7 @@
for (i = 0; i < MenuInfo->MenuItemCount; i++)
{
/* Check if it's a separator */
- if (!(_stricmp(MenuInfo->MenuItemList[i], "SEPARATOR")))
+ if (MenuInfo->MenuItemList[i] == NULL)
{
/* Draw the separator line */
UiDrawText(MenuInfo->Left,
@@ -325,10 +325,11 @@
strcat(MenuLineText, " ");
/* Now append the text string */
- strcat(MenuLineText, MenuInfo->MenuItemList[MenuItemNumber]);
+ if (MenuInfo->MenuItemList[MenuItemNumber])
+ strcat(MenuLineText, MenuInfo->MenuItemList[MenuItemNumber]);
/* If it is a separator */
- if (!(_stricmp(MenuInfo->MenuItemList[MenuItemNumber], "SEPARATOR")))
+ if (MenuInfo->MenuItemList[MenuItemNumber] == NULL)
{
/* Make it a separator line and use menu colors */
memset(MenuLineText, 0, 80);
@@ -436,7 +437,7 @@
/* Skip past any separators */
if ((Selected) &&
- !(_stricmp(MenuInfo->MenuItemList[Selected], "SEPARATOR")))
+ (MenuInfo->MenuItemList[Selected] == NULL))
{
MenuInfo->SelectedMenuItem--;
}
@@ -450,7 +451,7 @@
/* Skip past any separators */
if ((Selected < Count) &&
- !(_stricmp(MenuInfo->MenuItemList[Selected], "SEPARATOR")))
+ (MenuInfo->MenuItemList[Selected] == NULL))
{
MenuInfo->SelectedMenuItem++;
}
@@ -479,8 +480,11 @@
for (i = 0; i < MenuInfo->MenuItemCount; i++)
{
/* Get the string length and make it become the new width if necessary */
- Length = strlen(MenuInfo->MenuItemList[i]);
- if (Length > Width) Width = Length;
+ if (MenuInfo->MenuItemList[i])
+ {
+ Length = (ULONG)strlen(MenuInfo->MenuItemList[i]);
+ if (Length > Width) Width = Length;
+ }
}
/* Allow room for left & right borders, plus 8 spaces on each side */
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/ui/tu…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c [iso-8859-1] Tue Dec 25 00:53:23 2012
@@ -157,8 +157,11 @@
//
// Get the string length and make it become the new width if necessary
//
- Length = (ULONG)strlen(MenuInfo->MenuItemList[i]);
- if (Length > Width) Width = Length;
+ if (MenuInfo->MenuItemList[i])
+ {
+ Length = (ULONG)strlen(MenuInfo->MenuItemList[i]);
+ if (Length > Width) Width = Length;
+ }
}
//
@@ -334,7 +337,7 @@
//
// Check if it's a separator
//
- if (!(_stricmp(MenuInfo->MenuItemList[i], "SEPARATOR")))
+ if (MenuInfo->MenuItemList[i] == NULL)
{
//
// Draw the separator line
@@ -373,7 +376,8 @@
// how many spaces will be to the left and right
//
SpaceTotal = (MenuInfo->Right - MenuInfo->Left - 2) -
- (ULONG)strlen(MenuInfo->MenuItemList[MenuItemNumber]);
+ (ULONG)(MenuInfo->MenuItemList[MenuItemNumber] ?
+ strlen(MenuInfo->MenuItemList[MenuItemNumber]) : 0);
SpaceLeft = (SpaceTotal / 2) + 1;
SpaceRight = (SpaceTotal - SpaceLeft) + 1;
@@ -395,7 +399,8 @@
//
// Now append the text string
//
- strcat(MenuLineText, MenuInfo->MenuItemList[MenuItemNumber]);
+ if (MenuInfo->MenuItemList[MenuItemNumber])
+ strcat(MenuLineText, MenuInfo->MenuItemList[MenuItemNumber]);
//
// Check if using centered menu, and add spaces on the right if so
@@ -405,7 +410,7 @@
//
// If it is a separator
//
- if (!(_stricmp(MenuInfo->MenuItemList[MenuItemNumber], "SEPARATOR")))
+ if (MenuInfo->MenuItemList[MenuItemNumber] == NULL)
{
//
// Make it a separator line and use menu colors
@@ -504,7 +509,7 @@
// Skip past any separators
if ((Selected) &&
- !(_stricmp(MenuInfo->MenuItemList[Selected], "SEPARATOR")))
+ (MenuInfo->MenuItemList[Selected] == NULL))
{
MenuInfo->SelectedMenuItem--;
}
@@ -520,7 +525,7 @@
// Skip past any separators
if ((Selected < Count) &&
- !(_stricmp(MenuInfo->MenuItemList[Selected], "SEPARATOR")))
+ (MenuInfo->MenuItemList[Selected] == NULL))
{
MenuInfo->SelectedMenuItem++;
}
Author: hbelusca
Date: Mon Dec 24 17:27:04 2012
New Revision: 57998
URL: http://svn.reactos.org/svn/reactos?rev=57998&view=rev
Log:
[FONTS]
Add a suitable 'Fixedsys' TTF Unicode font, called 'Fixedsys Excelsior v3.01'.
Released into the Public Domain.
By Darien Gavin Valentine,
http://www.fixedsysexcelsior.com/
Added:
trunk/reactos/media/fonts/FSEX301-L2.ttf (with props)
trunk/reactos/media/fonts/FSEX301.ttf (with props)
trunk/reactos/media/fonts/doc/Fixedsys/ (with props)
trunk/reactos/media/fonts/doc/Fixedsys/README.txt (with props)
Modified:
trunk/reactos/media/fonts/CMakeLists.txt
Modified: trunk/reactos/media/fonts/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/media/fonts/CMakeLists.txt…
==============================================================================
--- trunk/reactos/media/fonts/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/media/fonts/CMakeLists.txt [iso-8859-1] Mon Dec 24 17:27:04 2012
@@ -32,6 +32,8 @@
FreeSerifBold.ttf
FreeSerifBoldItalic.ttf
FreeSerifItalic.ttf
+ FSEX301.ttf
+ FSEX301-L2.ttf
LiberationMono-Bold.ttf
LiberationMono-BoldItalic.ttf
LiberationMono-Italic.ttf
Added: trunk/reactos/media/fonts/FSEX301-L2.ttf
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/media/fonts/FSEX301-L2.ttf…
==============================================================================
Binary file - no diff available.
Propchange: trunk/reactos/media/fonts/FSEX301-L2.ttf
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: trunk/reactos/media/fonts/FSEX301.ttf
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/media/fonts/FSEX301.ttf?re…
==============================================================================
Binary file - no diff available.
Propchange: trunk/reactos/media/fonts/FSEX301.ttf
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: trunk/reactos/media/fonts/doc/Fixedsys/
------------------------------------------------------------------------------
--- bugtraq:logregex (added)
+++ bugtraq:logregex Mon Dec 24 17:27:04 2012
@@ -1,0 +1,2 @@
+([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))?
+(\d+)
Propchange: trunk/reactos/media/fonts/doc/Fixedsys/
------------------------------------------------------------------------------
bugtraq:message = See issue #%BUGID% for more details.
Propchange: trunk/reactos/media/fonts/doc/Fixedsys/
------------------------------------------------------------------------------
bugtraq:url = http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: trunk/reactos/media/fonts/doc/Fixedsys/
------------------------------------------------------------------------------
tsvn:logminsize = 10
Added: trunk/reactos/media/fonts/doc/Fixedsys/README.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/media/fonts/doc/Fixedsys/R…
==============================================================================
--- trunk/reactos/media/fonts/doc/Fixedsys/README.txt (added)
+++ trunk/reactos/media/fonts/doc/Fixedsys/README.txt [iso-8859-1] Mon Dec 24 17:27:04 2012
@@ -1,0 +1,44 @@
+Fixedsys Excelsior 3.01 TrueType Multilingual Font (FSEX301.ttf)
+================================================================
+Author : Darien Gavin Valentine
+E-mail : valentinium(a)gmail.com
+Address: 43 Electric Avenue - Apartment 1 - Somerville, Massachusetts,
+ United States of America
+
+http://www.fixedsysexcelsior.com/
+
+The FAQ: http://www.fixedsysexcelsior.com/information/faq.htm
+
+"[...]
+Q: I use this font a lot. Am I expected to give you money?
+A: No, Fixedsys Excelsior is free. If you feel incredibly grateful, send me an
+ email or a letter or something else, maybe rose-flavored Turkish Delight
+ (my address is at the bottom). Other flavors are fine too but rose is my
+ favorite. And I am generally more concerned with music than fonts, so if you
+ have any of that stuff ... Also, if you use IRC, feel free to proselytize to
+ your friends. My real intention, if I have one at all, is to make IRC a more
+ natural world without removing its distinctive feeling. Sure, maybe you dont
+ speak Farsi, but next time you encounter someone who does, theyll be typing
+ in Arabic, not question marks or boxes. The ultimate form of this dream would
+ be to have Fixedsys Excelsior distributed with mIRC or other IRC clients.
+[...]"
+
+
+http://en.wikipedia.org/wiki/Fixedsys_Excelsior
+
+"Fixedsys Excelsior is free software and appears to have been released by
+ its author into the public domain."
+
+
++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
+
+
+Modified version of the Fixedsys Excelsior 3.01 font of Darien Valentine,
+which seems to fix some problems (zero-width 'A' and ligatures):
+
+Fixedsys Excelsior 3.01-L2(FSEX301-L2.ttf)
+==========================================
+Authors: Jean-Baptiste Lallement, and Derek Veit
+Credits: Darien Gavin Valentine
+
+https://bugs.launchpad.net/ubuntu/+bug/200671
Propchange: trunk/reactos/media/fonts/doc/Fixedsys/README.txt
------------------------------------------------------------------------------
svn:eol-style = native