mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
[NTVDM]
Simplify the code svn path=/branches/ntvdm/; revision=59730
This commit is contained in:
parent
0c3e20ab89
commit
738d02adf2
|
@ -429,8 +429,12 @@ BOOLEAN BiosSetVideoMode(BYTE ModeNumber)
|
|||
|
||||
BOOLEAN BiosSetVideoPage(BYTE PageNumber)
|
||||
{
|
||||
/* Check if the page exists */
|
||||
if (PageNumber >= BIOS_MAX_PAGES) return FALSE;
|
||||
|
||||
/* Check if this is the same page */
|
||||
if (PageNumber == Bda->VideoPage) return TRUE;
|
||||
|
||||
/* Set the values in the BDA */
|
||||
Bda->VideoPage = PageNumber;
|
||||
Bda->VideoPageSize = BIOS_PAGE_SIZE;
|
||||
|
@ -744,7 +748,6 @@ VOID BiosVideoService(LPWORD Stack)
|
|||
{
|
||||
BiosSetVideoMode(LOBYTE(Eax));
|
||||
VgaClearMemory();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -800,15 +803,7 @@ VOID BiosVideoService(LPWORD Stack)
|
|||
/* Select Active Display Page */
|
||||
case 0x05:
|
||||
{
|
||||
/* Check if the page exists */
|
||||
if (LOBYTE(Eax) >= BIOS_MAX_PAGES) break;
|
||||
|
||||
/* Check if this is the same page */
|
||||
if (LOBYTE(Eax) == Bda->VideoPage) break;
|
||||
|
||||
/* Change the video page */
|
||||
BiosSetVideoPage(LOBYTE(Eax));
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue