mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[FREELDR] Always change video mode back to text-mode before starting up ReactOS.
CORE-16116 - This allows getting the /NOGUIBOOT mode working correctly, as the latter expects text-mode. Then, usetup (via BLUE driver) will change to a different text-mode, or, GUI boot will change (via BOOTVID) to VGA 640*480 16-color. - Always hide the VGA cursor. - Remove also the deprecated boolean "Setup" in the *PrepareForReactOS() functions. Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
This commit is contained in:
parent
306bcd9d73
commit
f37fb1f7f8
9 changed files with 19 additions and 24 deletions
|
@ -90,7 +90,7 @@ ArmInit(IN PARM_BOARD_CONFIGURATION_BLOCK BootContext)
|
|||
}
|
||||
|
||||
VOID
|
||||
ArmPrepareForReactOS(IN BOOLEAN Setup)
|
||||
ArmPrepareForReactOS(VOID)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1391,10 +1391,10 @@ PcMachInit(const char *CmdLine)
|
|||
}
|
||||
|
||||
VOID
|
||||
PcPrepareForReactOS(IN BOOLEAN Setup)
|
||||
PcPrepareForReactOS(VOID)
|
||||
{
|
||||
/* On PC, prepare video and turn off the floppy motor */
|
||||
PcVideoPrepareForReactOS(Setup);
|
||||
PcVideoPrepareForReactOS();
|
||||
DiskStopFloppyMotor();
|
||||
}
|
||||
|
||||
|
|
|
@ -211,10 +211,10 @@ XboxMachInit(const char *CmdLine)
|
|||
}
|
||||
|
||||
VOID
|
||||
XboxPrepareForReactOS(IN BOOLEAN Setup)
|
||||
XboxPrepareForReactOS(VOID)
|
||||
{
|
||||
/* On XBOX, prepare video and turn off the floppy motor */
|
||||
XboxVideoPrepareForReactOS(Setup);
|
||||
XboxVideoPrepareForReactOS();
|
||||
DiskStopFloppyMotor();
|
||||
}
|
||||
|
||||
|
|
|
@ -1109,16 +1109,10 @@ PcVideoSync(VOID)
|
|||
}
|
||||
|
||||
VOID
|
||||
PcVideoPrepareForReactOS(IN BOOLEAN Setup)
|
||||
PcVideoPrepareForReactOS(VOID)
|
||||
{
|
||||
if (Setup)
|
||||
{
|
||||
PcVideoSetMode80x50_80x43();
|
||||
}
|
||||
else
|
||||
{
|
||||
PcVideoSetBiosMode(0x12);
|
||||
}
|
||||
// PcVideoSetMode80x50_80x43();
|
||||
PcVideoSetMode80x25();
|
||||
PcVideoHideShowTextCursor(FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -240,9 +240,10 @@ XboxBeep(VOID)
|
|||
}
|
||||
|
||||
VOID
|
||||
XboxVideoPrepareForReactOS(IN BOOLEAN Setup)
|
||||
XboxVideoPrepareForReactOS(VOID)
|
||||
{
|
||||
XboxVideoClearScreenColor(MAKE_COLOR(0, 0, 0), TRUE);
|
||||
XboxVideoClearScreenColor(MAKE_COLOR(0, 0, 0), TRUE);
|
||||
XboxVideoHideShowTextCursor(FALSE);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -43,8 +43,8 @@ BOOLEAN XboxVideoIsPaletteFixed(VOID);
|
|||
VOID XboxVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
|
||||
VOID XboxVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
|
||||
VOID XboxVideoSync(VOID);
|
||||
VOID XboxVideoPrepareForReactOS(IN BOOLEAN Setup);
|
||||
VOID XboxPrepareForReactOS(IN BOOLEAN Setup);
|
||||
VOID XboxVideoPrepareForReactOS(VOID);
|
||||
VOID XboxPrepareForReactOS(VOID);
|
||||
|
||||
VOID XboxMemInit(VOID);
|
||||
PVOID XboxMemReserveMemory(ULONG MbToReserve);
|
||||
|
|
|
@ -44,8 +44,8 @@ BOOLEAN PcVideoIsPaletteFixed(VOID);
|
|||
VOID PcVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
|
||||
VOID PcVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
|
||||
VOID PcVideoSync(VOID);
|
||||
VOID PcVideoPrepareForReactOS(IN BOOLEAN Setup);
|
||||
VOID PcPrepareForReactOS(IN BOOLEAN Setup);
|
||||
VOID PcVideoPrepareForReactOS(VOID);
|
||||
VOID PcPrepareForReactOS(VOID);
|
||||
|
||||
PFREELDR_MEMORY_DESCRIPTOR PcMemGetMemoryMap(ULONG *MemoryMapSize);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ typedef struct tagMACHVTBL
|
|||
VOID (*VideoGetPaletteColor)(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
|
||||
VOID (*VideoSync)(VOID);
|
||||
VOID (*Beep)(VOID);
|
||||
VOID (*PrepareForReactOS)(IN BOOLEAN Setup);
|
||||
VOID (*PrepareForReactOS)(VOID);
|
||||
|
||||
// NOTE: Not in the machine.c ...
|
||||
FREELDR_MEMORY_DESCRIPTOR* (*GetMemoryDescriptor)(FREELDR_MEMORY_DESCRIPTOR* Current);
|
||||
|
@ -113,8 +113,8 @@ VOID MachInit(const char *CmdLine);
|
|||
MachVtbl.VideoSync()
|
||||
#define MachBeep() \
|
||||
MachVtbl.Beep()
|
||||
#define MachPrepareForReactOS(Setup) \
|
||||
MachVtbl.PrepareForReactOS(Setup)
|
||||
#define MachPrepareForReactOS() \
|
||||
MachVtbl.PrepareForReactOS()
|
||||
#define MachDiskGetBootPath(Path, Size) \
|
||||
MachVtbl.DiskGetBootPath((Path), (Size))
|
||||
#define MachDiskReadLogicalSectors(Drive, Start, Count, Buf) \
|
||||
|
|
|
@ -832,7 +832,7 @@ LoadAndBootWindowsCommon(
|
|||
LoaderBlockVA = PaToVa(LoaderBlock);
|
||||
|
||||
/* "Stop all motors", change videomode */
|
||||
MachPrepareForReactOS(Setup);
|
||||
MachPrepareForReactOS();
|
||||
|
||||
/* Cleanup ini file */
|
||||
IniCleanup();
|
||||
|
|
Loading…
Reference in a new issue