mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[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:
parent
a2c6af0da4
commit
79f16507c4
2 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ BOOL InitVGA(PPDEV ppdev, BOOL bFirst)
|
||||||
|
|
||||||
ppdev->sizeSurf.cx = 640;
|
ppdev->sizeSurf.cx = 640;
|
||||||
ppdev->sizeSurf.cy = 480;
|
ppdev->sizeSurf.cy = 480;
|
||||||
ppdev->ModeNum = 12;
|
ppdev->ModeNum = 2;
|
||||||
|
|
||||||
/* Set the mode that was requested */
|
/* Set the mode that was requested */
|
||||||
if (EngDeviceIoControl(ppdev->KMDriver,
|
if (EngDeviceIoControl(ppdev->KMDriver,
|
||||||
|
|
|
@ -545,7 +545,7 @@ BOOLEAN VGASetColorRegisters(IN PVIDEO_CLUT ColorLookUpTable,
|
||||||
BOOLEAN VGASetCurrentMode(IN PVIDEO_MODE RequestedMode,
|
BOOLEAN VGASetCurrentMode(IN PVIDEO_MODE RequestedMode,
|
||||||
OUT PSTATUS_BLOCK StatusBlock)
|
OUT PSTATUS_BLOCK StatusBlock)
|
||||||
{
|
{
|
||||||
if(RequestedMode->RequestedMode == 12)
|
if(RequestedMode->RequestedMode == 2)
|
||||||
{
|
{
|
||||||
InitVGAMode();
|
InitVGAMode();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue