[VGAMP/VGADDI] Be consistent in IOCTL_VIDEO_GET_CURRENT_MODE and IOCTL_VIDEO_SET_CURRENT_MODE

As IOCTL_VIDEO_GET_CURRENT_MODE returns 2 as ModeIndex, wait for the same value
in IOCTL_VIDEO_SET_CURRENT_MODE.
Also change vgaddi to send this hardcoded value.

vga_new also uses 2 as index for 640x480x16
This commit is contained in:
Hervé Poussineau 2022-10-22 13:33:55 +02:00
parent a2c6af0da4
commit 79f16507c4
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ BOOL InitVGA(PPDEV ppdev, BOOL bFirst)
ppdev->sizeSurf.cx = 640;
ppdev->sizeSurf.cy = 480;
ppdev->ModeNum = 12;
ppdev->ModeNum = 2;
/* Set the mode that was requested */
if (EngDeviceIoControl(ppdev->KMDriver,

View file

@ -545,7 +545,7 @@ BOOLEAN VGASetColorRegisters(IN PVIDEO_CLUT ColorLookUpTable,
BOOLEAN VGASetCurrentMode(IN PVIDEO_MODE RequestedMode,
OUT PSTATUS_BLOCK StatusBlock)
{
if(RequestedMode->RequestedMode == 12)
if(RequestedMode->RequestedMode == 2)
{
InitVGAMode();
return TRUE;