mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[VGA_NEW] Fix 2 'MAX_USHORT' typos in commented code (#2145)
This commit is contained in:
committed by
Hermès BÉLUSCA - MAÏTO
parent
99f8ccdc7f
commit
cfdd483c0e
@@ -363,7 +363,7 @@ InitializeModeTable(IN PHW_DEVICE_EXTENSION VgaExtension)
|
||||
{
|
||||
/* Read the screen stride (scanline size) */
|
||||
ScreenStride = RaiseToPower2(VbeModeInfo->BytesPerScanLine);
|
||||
//ASSERT(ScreenStride <= MAX_USHORT);
|
||||
//ASSERT(ScreenStride <= MAXUSHORT);
|
||||
VgaMode->wbytes = (USHORT)ScreenStride;
|
||||
VideoDebugPrint((0, "ScanLines: %lx Stride: %lx\n", VbeModeInfo->BytesPerScanLine, VgaMode->wbytes));
|
||||
|
||||
@@ -391,7 +391,7 @@ InitializeModeTable(IN PHW_DEVICE_EXTENSION VgaExtension)
|
||||
VideoDebugPrint((0, "LINEAR MODE!!!\n"));
|
||||
ScreenStride = (VbeVersion >= 0x300) ? VbeModeInfo->LinBytesPerScanLine : 0;
|
||||
if (!ScreenStride) ScreenStride = VbeModeInfo->BytesPerScanLine;
|
||||
//ASSERT(ScreenStride <= MAX_USHORT);
|
||||
//ASSERT(ScreenStride <= MAXUSHORT);
|
||||
VgaMode->wbytes = (USHORT)ScreenStride;
|
||||
VideoDebugPrint((0, "ScanLines: %lx Stride: %lx\n", VbeModeInfo->BytesPerScanLine, VgaMode->wbytes));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user