mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[FREELDR]
Set proper video mode for VESA graphical Remove one magic value usage svn path=/trunk/; revision=56137
This commit is contained in:
parent
c59095903a
commit
efffb2f0b1
2 changed files with 4 additions and 4 deletions
|
@ -798,7 +798,7 @@ PcVideoSetMode(USHORT NewMode)
|
|||
ScreenHeight = VesaVideoModeInformation.HeightInPixels;
|
||||
BytesPerScanLine = VesaVideoModeInformation.BytesPerScanLine;
|
||||
BiosVideoMode = NewMode;
|
||||
DisplayMode = VideoTextMode;
|
||||
DisplayMode = VideoGraphicsMode;
|
||||
VesaVideoMode = TRUE;
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -338,11 +338,11 @@ DetectBiosDisks(PCONFIGURATION_COMPONENT_DATA SystemKey,
|
|||
* harddisks. So, we set the buffer to known contents first, then try to
|
||||
* read. If the BIOS reports success but the buffer contents haven't
|
||||
* changed then we fail anyway */
|
||||
memset((PVOID) DISKREADBUFFER, 0xcd, 512);
|
||||
memset((PVOID) DISKREADBUFFER, 0xcd, DISKREADBUFFER_SIZE);
|
||||
while (MachDiskReadLogicalSectors(0x80 + DiskCount, 0ULL, 1, (PVOID)DISKREADBUFFER))
|
||||
{
|
||||
Changed = FALSE;
|
||||
for (i = 0; ! Changed && i < 512; i++)
|
||||
for (i = 0; ! Changed && i < DISKREADBUFFER_SIZE; i++)
|
||||
{
|
||||
Changed = ((PUCHAR)DISKREADBUFFER)[i] != 0xcd;
|
||||
}
|
||||
|
@ -353,7 +353,7 @@ DetectBiosDisks(PCONFIGURATION_COMPONENT_DATA SystemKey,
|
|||
break;
|
||||
}
|
||||
DiskCount++;
|
||||
memset((PVOID) DISKREADBUFFER, 0xcd, 512);
|
||||
memset((PVOID) DISKREADBUFFER, 0xcd, DISKREADBUFFER_SIZE);
|
||||
}
|
||||
DiskReportError(TRUE);
|
||||
TRACE("BIOS reports %d harddisk%s\n",
|
||||
|
|
Loading…
Reference in a new issue