Author: cwittich
Date: Thu Jan 31 10:33:02 2008
New Revision: 32061
URL:
http://svn.reactos.org/svn/reactos?rev=32061&view=rev
Log:
don't draw the standard UI background in minimal mode
some code reduction
Modified:
trunk/reactos/boot/freeldr/freeldr/ui/minitui.c
trunk/reactos/boot/freeldr/freeldr/ui/ui.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/minitui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/ui/mi…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/ui/minitui.c (original)
+++ trunk/reactos/boot/freeldr/freeldr/ui/minitui.c Thu Jan 31 10:33:02 2008
@@ -149,7 +149,7 @@
TuiEditBox,
TuiTextToColor,
TuiTextToFillStyle,
- TuiFadeInBackdrop,
+ MiniTuiDrawBackdrop, /* no FadeIn */
TuiFadeOut,
TuiDisplayMenu,
MiniTuiDrawMenu,
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 Thu Jan 31 10:33:02 2008
@@ -95,7 +95,6 @@
}
DbgPrint((DPRINT_UI, "Initializing User Interface.\n"));
-
DbgPrint((DPRINT_UI, "Reading in UI settings from [Display] section.\n"));
DisplayModeText[0] = '\0';
@@ -107,14 +106,7 @@
}
if (IniReadSettingByName(SectionId, "MinimalUI", SettingText,
sizeof(SettingText)))
{
- if (_stricmp(SettingText, "Yes") == 0 && strlen(SettingText) == 3)
- {
- UiMinimal = TRUE;
- }
- else
- {
- UiMinimal = FALSE;
- }
+ UiMinimal = (_stricmp(SettingText, "Yes") == 0 &&
strlen(SettingText) == 3);
}
}
@@ -208,47 +200,19 @@
}
if (IniReadSettingByName(SectionId, "SpecialEffects", SettingText,
sizeof(SettingText)))
{
- if (_stricmp(SettingText, "Yes") == 0 && strlen(SettingText) == 3)
- {
- UiUseSpecialEffects = TRUE;
- }
- else
- {
- UiUseSpecialEffects = FALSE;
- }
+ UiUseSpecialEffects = (_stricmp(SettingText, "Yes") == 0 &&
strlen(SettingText) == 3);
}
if (IniReadSettingByName(SectionId, "ShowTime", SettingText,
sizeof(SettingText)))
{
- if (_stricmp(SettingText, "Yes") == 0 && strlen(SettingText) == 3)
- {
- UiDrawTime = TRUE;
- }
- else
- {
- UiDrawTime = FALSE;
- }
+ UiDrawTime = (_stricmp(SettingText, "Yes") == 0 &&
strlen(SettingText) == 3);
}
if (IniReadSettingByName(SectionId, "MenuBox", SettingText,
sizeof(SettingText)))
{
- if (_stricmp(SettingText, "Yes") == 0 && strlen(SettingText) == 3)
- {
- UiMenuBox = TRUE;
- }
- else
- {
- UiMenuBox = FALSE;
- }
+ UiMenuBox = (_stricmp(SettingText, "Yes") == 0 &&
strlen(SettingText) == 3);
}
if (IniReadSettingByName(SectionId, "CenterMenu", SettingText,
sizeof(SettingText)))
{
- if (_stricmp(SettingText, "Yes") == 0 && strlen(SettingText) == 3)
- {
- UiCenterMenu = TRUE;
- }
- else
- {
- UiCenterMenu = FALSE;
- }
+ UiCenterMenu = (_stricmp(SettingText, "Yes") == 0 &&
strlen(SettingText) == 3);
}
}