Reinitialized the palette entries after setting the video mode in DrvAssertMode.

svn path=/trunk/; revision=14831
This commit is contained in:
Hartmut Birr 2005-04-27 21:10:44 +00:00
parent 06ff525737
commit 68f8b9f89b

View file

@ -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
{