mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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)
|
if (bEnable)
|
||||||
{
|
{
|
||||||
|
BOOLEAN Result;
|
||||||
/*
|
/*
|
||||||
* Reinitialize the device to a clean state.
|
* Reinitialize the device to a clean state.
|
||||||
*/
|
*/
|
||||||
|
Result = EngDeviceIoControl(ppdev->hDriver, IOCTL_VIDEO_SET_CURRENT_MODE,
|
||||||
return !EngDeviceIoControl(ppdev->hDriver, IOCTL_VIDEO_SET_CURRENT_MODE,
|
|
||||||
&(ppdev->ModeIndex), sizeof(ULONG), NULL, 0,
|
&(ppdev->ModeIndex), sizeof(ULONG), NULL, 0,
|
||||||
&ulTemp);
|
&ulTemp);
|
||||||
|
if (ppdev->BitsPerPixel == 8)
|
||||||
|
{
|
||||||
|
IntSetPalette(dhpdev, ppdev->PaletteEntries, 0, 256);
|
||||||
|
}
|
||||||
|
return Result;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue