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.
|
||||
*/
|
||||
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;
|
||||
|
||||
return !EngDeviceIoControl(ppdev->hDriver, IOCTL_VIDEO_SET_CURRENT_MODE,
|
||||
&(ppdev->ModeIndex), sizeof(ULONG), NULL, 0,
|
||||
&ulTemp);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue