Author: pschweitzer
Date: Mon Mar 12 23:00:56 2012
New Revision: 56137
URL:
http://svn.reactos.org/svn/reactos?rev=56137&view=rev
Log:
[FREELDR]
Set proper video mode for VESA graphical
Remove one magic value usage
Modified:
trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c [iso-8859-1] Mon Mar 12
23:00:56 2012
@@ -798,7 +798,7 @@
ScreenHeight = VesaVideoModeInformation.HeightInPixels;
BytesPerScanLine = VesaVideoModeInformation.BytesPerScanLine;
BiosVideoMode = NewMode;
- DisplayMode = VideoTextMode;
+ DisplayMode = VideoGraphicsMode;
VesaVideoMode = TRUE;
return TRUE;
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c [iso-8859-1] Mon Mar 12 23:00:56
2012
@@ -338,11 +338,11 @@
* 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 @@
break;
}
DiskCount++;
- memset((PVOID) DISKREADBUFFER, 0xcd, 512);
+ memset((PVOID) DISKREADBUFFER, 0xcd, DISKREADBUFFER_SIZE);
}
DiskReportError(TRUE);
TRACE("BIOS reports %d harddisk%s\n",