[VGAMP/VGADDI] Be consistent in IOCTL_VIDEO_GET_CURRENT_MODE and IOCTL_VIDEO_SET_CURR...
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 22 Oct 2022 11:33:55 +0000 (13:33 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 15 Nov 2022 22:15:26 +0000 (23:15 +0100)
commit79f16507c4835560bf6b2285922a9781bd262a9a
tree9427881910ae0ed52c54933c37f5929a8ff18fe8
parenta2c6af0da4acbba9c254d003e9d9f4ea6e03ed63
[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
win32ss/drivers/displays/vga/objects/screen.c
win32ss/drivers/miniport/vga/vgamp.c