mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +00:00
[USETUP] Whitespace fixes only.
svn path=/branches/setup_improvements/; revision=75752
This commit is contained in:
parent
9d93100afc
commit
b86d19e936
1 changed files with 84 additions and 83 deletions
|
@ -16,7 +16,8 @@
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
/* COPYRIGHT: See COPYING in the top level directory
|
/*
|
||||||
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS text-mode setup
|
* PROJECT: ReactOS text-mode setup
|
||||||
* FILE: base/setup/usetup/genlist.c
|
* FILE: base/setup/usetup/genlist.c
|
||||||
* PURPOSE: Generic list functions
|
* PURPOSE: Generic list functions
|
||||||
|
@ -60,75 +61,75 @@ DrawListFrame(
|
||||||
/* Draw upper left corner */
|
/* Draw upper left corner */
|
||||||
coPos.X = ListUi->Left;
|
coPos.X = ListUi->Left;
|
||||||
coPos.Y = ListUi->Top;
|
coPos.Y = ListUi->Top;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xDA, // '+',
|
0xDA, // '+',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
/* Draw upper edge */
|
/* Draw upper edge */
|
||||||
coPos.X = ListUi->Left + 1;
|
coPos.X = ListUi->Left + 1;
|
||||||
coPos.Y = ListUi->Top;
|
coPos.Y = ListUi->Top;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xC4, // '-',
|
0xC4, // '-',
|
||||||
ListUi->Right - ListUi->Left - 1,
|
ListUi->Right - ListUi->Left - 1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
/* Draw upper right corner */
|
/* Draw upper right corner */
|
||||||
coPos.X = ListUi->Right;
|
coPos.X = ListUi->Right;
|
||||||
coPos.Y = ListUi->Top;
|
coPos.Y = ListUi->Top;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xBF, // '+',
|
0xBF, // '+',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
/* Draw left and right edge */
|
/* Draw left and right edge */
|
||||||
for (i = ListUi->Top + 1; i < ListUi->Bottom; i++)
|
for (i = ListUi->Top + 1; i < ListUi->Bottom; i++)
|
||||||
{
|
{
|
||||||
coPos.X = ListUi->Left;
|
coPos.X = ListUi->Left;
|
||||||
coPos.Y = i;
|
coPos.Y = i;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xB3, // '|',
|
0xB3, // '|',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
coPos.X = ListUi->Right;
|
coPos.X = ListUi->Right;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xB3, //'|',
|
0xB3, //'|',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Draw lower left corner */
|
/* Draw lower left corner */
|
||||||
coPos.X = ListUi->Left;
|
coPos.X = ListUi->Left;
|
||||||
coPos.Y = ListUi->Bottom;
|
coPos.Y = ListUi->Bottom;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xC0, // '+',
|
0xC0, // '+',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
/* Draw lower edge */
|
/* Draw lower edge */
|
||||||
coPos.X = ListUi->Left + 1;
|
coPos.X = ListUi->Left + 1;
|
||||||
coPos.Y = ListUi->Bottom;
|
coPos.Y = ListUi->Bottom;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xC4, // '-',
|
0xC4, // '-',
|
||||||
ListUi->Right - ListUi->Left - 1,
|
ListUi->Right - ListUi->Left - 1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
/* Draw lower right corner */
|
/* Draw lower right corner */
|
||||||
coPos.X = ListUi->Right;
|
coPos.X = ListUi->Right;
|
||||||
coPos.Y = ListUi->Bottom;
|
coPos.Y = ListUi->Bottom;
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
0xD9, // '+',
|
0xD9, // '+',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
@ -156,26 +157,26 @@ DrawListEntries(
|
||||||
break;
|
break;
|
||||||
ListUi->LastShown = Entry;
|
ListUi->LastShown = Entry;
|
||||||
|
|
||||||
FillConsoleOutputAttribute (StdOutput,
|
FillConsoleOutputAttribute(StdOutput,
|
||||||
(List->CurrentEntry == ListEntry) ?
|
(List->CurrentEntry == ListEntry) ?
|
||||||
FOREGROUND_BLUE | BACKGROUND_WHITE :
|
FOREGROUND_BLUE | BACKGROUND_WHITE :
|
||||||
FOREGROUND_WHITE | BACKGROUND_BLUE,
|
FOREGROUND_WHITE | BACKGROUND_BLUE,
|
||||||
|
Width,
|
||||||
|
coPos,
|
||||||
|
&Written);
|
||||||
|
|
||||||
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
|
' ',
|
||||||
Width,
|
Width,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
coPos.X++;
|
||||||
' ',
|
WriteConsoleOutputCharacterA(StdOutput,
|
||||||
Width,
|
ListEntry->Text,
|
||||||
|
min(strlen(ListEntry->Text), (SIZE_T)Width - 2),
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
coPos.X++;
|
|
||||||
WriteConsoleOutputCharacterA (StdOutput,
|
|
||||||
ListEntry->Text,
|
|
||||||
min (strlen(ListEntry->Text), (SIZE_T)Width - 2),
|
|
||||||
coPos,
|
|
||||||
&Written);
|
|
||||||
coPos.X--;
|
coPos.X--;
|
||||||
|
|
||||||
coPos.Y++;
|
coPos.Y++;
|
||||||
|
@ -184,17 +185,17 @@ DrawListEntries(
|
||||||
|
|
||||||
while (coPos.Y < ListUi->Bottom)
|
while (coPos.Y < ListUi->Bottom)
|
||||||
{
|
{
|
||||||
FillConsoleOutputAttribute (StdOutput,
|
FillConsoleOutputAttribute(StdOutput,
|
||||||
FOREGROUND_WHITE | BACKGROUND_BLUE,
|
FOREGROUND_WHITE | BACKGROUND_BLUE,
|
||||||
|
Width,
|
||||||
|
coPos,
|
||||||
|
&Written);
|
||||||
|
|
||||||
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
|
' ',
|
||||||
Width,
|
Width,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
|
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
|
||||||
' ',
|
|
||||||
Width,
|
|
||||||
coPos,
|
|
||||||
&Written);
|
|
||||||
coPos.Y++;
|
coPos.Y++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -213,37 +214,37 @@ DrawScrollBarGenericList(
|
||||||
|
|
||||||
if (ListUi->FirstShown != List->ListHead.Flink)
|
if (ListUi->FirstShown != List->ListHead.Flink)
|
||||||
{
|
{
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
'\x18',
|
'\x18',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
' ',
|
' ',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
}
|
}
|
||||||
|
|
||||||
coPos.Y = ListUi->Bottom;
|
coPos.Y = ListUi->Bottom;
|
||||||
if (ListUi->LastShown != List->ListHead.Blink)
|
if (ListUi->LastShown != List->ListHead.Blink)
|
||||||
{
|
{
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
'\x19',
|
'\x19',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FillConsoleOutputCharacterA (StdOutput,
|
FillConsoleOutputCharacterA(StdOutput,
|
||||||
' ',
|
' ',
|
||||||
1,
|
1,
|
||||||
coPos,
|
coPos,
|
||||||
&Written);
|
&Written);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue