mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 09:00:27 +00:00
[USETUP] Simplify display of partitions being formatted (#5837)
This commit is contained in:
parent
3d4f001084
commit
1899a09399
1 changed files with 14 additions and 42 deletions
|
@ -2108,11 +2108,6 @@ CreatePrimaryPartitionPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_HDPARTSIZE));
|
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_HDPARTSIZE));
|
||||||
|
|
||||||
#if 0
|
|
||||||
CONSOLE_PrintTextXY(8, 10, "Maximum size of the new partition is %I64u MB",
|
|
||||||
CurrentPartition->SectorCount * DiskEntry->BytesPerSector / MB);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CONSOLE_SetStatusText(MUIGetString(STRING_CREATEPARTITION));
|
CONSOLE_SetStatusText(MUIGetString(STRING_CREATEPARTITION));
|
||||||
|
|
||||||
PartEntry = CurrentPartition;
|
PartEntry = CurrentPartition;
|
||||||
|
@ -2226,11 +2221,6 @@ CreateExtendedPartitionPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_HDPARTSIZE));
|
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_HDPARTSIZE));
|
||||||
|
|
||||||
#if 0
|
|
||||||
CONSOLE_PrintTextXY(8, 10, "Maximum size of the new partition is %I64u MB",
|
|
||||||
CurrentPartition->SectorCount * DiskEntry->BytesPerSector / MB);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CONSOLE_SetStatusText(MUIGetString(STRING_CREATEPARTITION));
|
CONSOLE_SetStatusText(MUIGetString(STRING_CREATEPARTITION));
|
||||||
|
|
||||||
PartEntry = CurrentPartition;
|
PartEntry = CurrentPartition;
|
||||||
|
@ -2343,11 +2333,6 @@ CreateLogicalPartitionPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_HDPARTSIZE));
|
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_HDPARTSIZE));
|
||||||
|
|
||||||
#if 0
|
|
||||||
CONSOLE_PrintTextXY(8, 10, "Maximum size of the new partition is %I64u MB",
|
|
||||||
CurrentPartition->SectorCount * DiskEntry->BytesPerSector / MB);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CONSOLE_SetStatusText(MUIGetString(STRING_CREATEPARTITION));
|
CONSOLE_SetStatusText(MUIGetString(STRING_CREATEPARTITION));
|
||||||
|
|
||||||
PartEntry = CurrentPartition;
|
PartEntry = CurrentPartition;
|
||||||
|
@ -2489,7 +2474,7 @@ DeletePartitionPage(PINPUT_RECORD Ir)
|
||||||
MUIDisplayPage(DELETE_PARTITION_PAGE);
|
MUIDisplayPage(DELETE_PARTITION_PAGE);
|
||||||
|
|
||||||
PartitionDescription(PartEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
PartitionDescription(PartEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
||||||
CONSOLE_PrintTextXY(6, 10, " %s", LineBuffer);
|
CONSOLE_SetTextXY(6, 10, LineBuffer);
|
||||||
|
|
||||||
DiskDescription(DiskEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
DiskDescription(DiskEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
||||||
CONSOLE_PrintTextXY(6, 12, MUIGetString(STRING_HDDISK2),
|
CONSOLE_PrintTextXY(6, 12, MUIGetString(STRING_HDDISK2),
|
||||||
|
@ -2822,20 +2807,9 @@ SelectFileSystemPage(PINPUT_RECORD Ir)
|
||||||
|
|
||||||
if (PartEntry->AutoCreate)
|
if (PartEntry->AutoCreate)
|
||||||
{
|
{
|
||||||
CONSOLE_SetTextXY(6, 8, MUIGetString(STRING_NEWPARTITION));
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
PartitionDescription(PartEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
|
||||||
CONSOLE_SetTextXY(8, 10, LineBuffer);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DiskDescription(DiskEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
|
||||||
CONSOLE_PrintTextXY(8, 10, MUIGetString(STRING_HDDISK1),
|
|
||||||
LineBuffer);
|
|
||||||
|
|
||||||
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_PARTFORMAT));
|
|
||||||
|
|
||||||
PartEntry->AutoCreate = FALSE;
|
PartEntry->AutoCreate = FALSE;
|
||||||
|
|
||||||
|
CONSOLE_SetTextXY(6, 8, MUIGetString(STRING_NEWPARTITION));
|
||||||
}
|
}
|
||||||
else if (PartEntry->New)
|
else if (PartEntry->New)
|
||||||
{
|
{
|
||||||
|
@ -2857,24 +2831,22 @@ SelectFileSystemPage(PINPUT_RECORD Ir)
|
||||||
ASSERT(FALSE);
|
ASSERT(FALSE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
DiskDescription(DiskEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
|
||||||
CONSOLE_PrintTextXY(8, 10, MUIGetString(STRING_HDDISK1),
|
|
||||||
LineBuffer);
|
|
||||||
|
|
||||||
CONSOLE_SetTextXY(6, 12, MUIGetString(STRING_PARTFORMAT));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CONSOLE_SetTextXY(6, 8, MUIGetString(STRING_INSTALLONPART));
|
CONSOLE_SetTextXY(6, 8, MUIGetString(STRING_INSTALLONPART));
|
||||||
|
}
|
||||||
|
|
||||||
PartitionDescription(PartEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
PartitionDescription(PartEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
||||||
CONSOLE_SetTextXY(8, 10, LineBuffer);
|
CONSOLE_SetTextXY(6, 10, LineBuffer);
|
||||||
|
|
||||||
DiskDescription(DiskEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
DiskDescription(DiskEntry, LineBuffer, ARRAYSIZE(LineBuffer));
|
||||||
CONSOLE_PrintTextXY(6, 12, MUIGetString(STRING_HDDISK2),
|
CONSOLE_PrintTextXY(6, 12, MUIGetString(STRING_HDDISK2),
|
||||||
LineBuffer);
|
LineBuffer);
|
||||||
}
|
|
||||||
|
/* Show "This Partition will be formatted next" only if it is unformatted */
|
||||||
|
if (PartEntry->New || PartEntry->FormatState == Unformatted)
|
||||||
|
CONSOLE_SetTextXY(6, 14, MUIGetString(STRING_PARTFORMAT));
|
||||||
|
|
||||||
ASSERT(FileSystemList == NULL);
|
ASSERT(FileSystemList == NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue