mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[BLUE] Fix a visual regression introduced in bfd8a848
: Don't touch INBV when resetting internal screen state during driver loading.
This commit is contained in:
parent
18a51dc7f5
commit
1928e170f2
1 changed files with 9 additions and 5 deletions
|
@ -279,9 +279,12 @@ ScrInbvCleanup(VOID)
|
||||||
// HANDLE ThreadHandle;
|
// HANDLE ThreadHandle;
|
||||||
|
|
||||||
// ResetDisplayParametersDeviceExtension = NULL;
|
// ResetDisplayParametersDeviceExtension = NULL;
|
||||||
InbvNotifyDisplayOwnershipLost(NULL);
|
if (ResetDisplayParametersDeviceExtension)
|
||||||
ScrResetDisplayParametersEx(80, 50, FALSE);
|
{
|
||||||
// or InbvAcquireDisplayOwnership(); ?
|
InbvNotifyDisplayOwnershipLost(NULL);
|
||||||
|
ScrResetDisplayParametersEx(80, 50, FALSE);
|
||||||
|
// or InbvAcquireDisplayOwnership(); ?
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// TODO: Find the best way to communicate the request.
|
// TODO: Find the best way to communicate the request.
|
||||||
|
@ -1323,9 +1326,10 @@ DriverEntry(
|
||||||
Status = IoCreateSymbolicLink(&SymlinkName, &DeviceName);
|
Status = IoCreateSymbolicLink(&SymlinkName, &DeviceName);
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* By default disable the screen */
|
/* By default disable the screen (but don't touch INBV: ResetDisplayParametersDeviceExtension is still NULL) */
|
||||||
ResetDisplayParametersDeviceExtension = DeviceObject->DeviceExtension;
|
|
||||||
ScrResetScreen(DeviceObject->DeviceExtension, TRUE, FALSE);
|
ScrResetScreen(DeviceObject->DeviceExtension, TRUE, FALSE);
|
||||||
|
/* Now set ResetDisplayParametersDeviceExtension to enable synchronizing with INBV */
|
||||||
|
ResetDisplayParametersDeviceExtension = DeviceObject->DeviceExtension;
|
||||||
DeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
|
DeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue