mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Reinitialized the palette entries after setting the video mode in DrvAssertMode.
svn path=/trunk/; revision=14831
This commit is contained in:
parent
06ff525737
commit
68f8b9f89b
1 changed files with 9 additions and 3 deletions
|
@ -172,13 +172,19 @@ DrvAssertMode(
|
|||
|
||||
if (bEnable)
|
||||
{
|
||||
BOOLEAN Result;
|
||||
/*
|
||||
* Reinitialize the device to a clean state.
|
||||
*/
|
||||
|
||||
return !EngDeviceIoControl(ppdev->hDriver, IOCTL_VIDEO_SET_CURRENT_MODE,
|
||||
Result = EngDeviceIoControl(ppdev->hDriver, IOCTL_VIDEO_SET_CURRENT_MODE,
|
||||
&(ppdev->ModeIndex), sizeof(ULONG), NULL, 0,
|
||||
&ulTemp);
|
||||
if (ppdev->BitsPerPixel == 8)
|
||||
{
|
||||
IntSetPalette(dhpdev, ppdev->PaletteEntries, 0, 256);
|
||||
}
|
||||
return Result;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue