mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +00:00
- Calls the miniport's HwReset if the HAL reacquires display ownership;
don't do an int10. svn path=/trunk/; revision=5815
This commit is contained in:
parent
f85a8455cb
commit
659245c76a
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: videoprt.c,v 1.9 2003/07/12 10:24:45 chorns Exp $
|
/* $Id: videoprt.c,v 1.10 2003/08/24 11:30:02 dwelch Exp $
|
||||||
*
|
*
|
||||||
* VideoPort driver
|
* VideoPort driver
|
||||||
* Written by Rex Jolliff
|
* Written by Rex Jolliff
|
||||||
|
@ -1250,28 +1250,20 @@ VideoPortZeroDeviceMemory(OUT PVOID Destination,
|
||||||
static BOOLEAN STDCALL
|
static BOOLEAN STDCALL
|
||||||
VideoPortResetDisplayParameters(Columns, Rows)
|
VideoPortResetDisplayParameters(Columns, Rows)
|
||||||
{
|
{
|
||||||
VIDEO_X86_BIOS_ARGUMENTS Int10Arguments;
|
if (NULL != ResetDisplayParametersDeviceExtension)
|
||||||
|
|
||||||
if (NULL != ResetDisplayParametersDeviceExtension &&
|
|
||||||
(NULL == ResetDisplayParametersDeviceExtension->HwResetHw ||
|
|
||||||
! ResetDisplayParametersDeviceExtension->HwResetHw(&ResetDisplayParametersDeviceExtension->MiniPortDeviceExtension,
|
|
||||||
Columns, Rows)))
|
|
||||||
{
|
{
|
||||||
/* This should really be done by HAL, but we have this nice
|
return(FALSE);
|
||||||
* VideoPortInt10 available */
|
|
||||||
|
|
||||||
/* Set mode */
|
|
||||||
RtlZeroMemory(&Int10Arguments, sizeof(VIDEO_X86_BIOS_ARGUMENTS));
|
|
||||||
Int10Arguments.Eax = 0x0003;
|
|
||||||
VideoPortInt10(&ResetDisplayParametersDeviceExtension->MiniPortDeviceExtension,
|
|
||||||
&Int10Arguments);
|
|
||||||
|
|
||||||
/* Select 8x8 font */
|
|
||||||
Int10Arguments.Eax = 0x1112;
|
|
||||||
Int10Arguments.Ebx = 0;
|
|
||||||
VideoPortInt10(&ResetDisplayParametersDeviceExtension->MiniPortDeviceExtension,
|
|
||||||
&Int10Arguments);
|
|
||||||
}
|
}
|
||||||
|
if (NULL == ResetDisplayParametersDeviceExtension->HwResetHw)
|
||||||
|
{
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
if (!ResetDisplayParametersDeviceExtension->HwResetHw(&ResetDisplayParametersDeviceExtension->MiniPortDeviceExtension,
|
||||||
|
Columns, Rows))
|
||||||
|
{
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
ResetDisplayParametersDeviceExtension = NULL;
|
ResetDisplayParametersDeviceExtension = NULL;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue