mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[VGA_NEW] Fix 2 'MAX_USHORT' typos in commented code (#2145)
This commit is contained in:
parent
99f8ccdc7f
commit
cfdd483c0e
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue