mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +00:00
[NtUser] Fix setting screen size.
Back set change size to the server information metrics. Fixes CORE-15477. Still more work is required. Patch based on reactosfanboy original patch.
This commit is contained in:
parent
fe6c7f05e2
commit
0f29b3faa7
1 changed files with 9 additions and 4 deletions
|
@ -830,6 +830,8 @@ UserChangeDisplaySettings(
|
||||||
gpsi->Planes = ppdev->gdiinfo.cPlanes;
|
gpsi->Planes = ppdev->gdiinfo.cPlanes;
|
||||||
gpsi->BitsPixel = ppdev->gdiinfo.cBitsPixel;
|
gpsi->BitsPixel = ppdev->gdiinfo.cBitsPixel;
|
||||||
gpsi->BitCount = gpsi->Planes * gpsi->BitsPixel;
|
gpsi->BitCount = gpsi->Planes * gpsi->BitsPixel;
|
||||||
|
gpsi->aiSysMet[SM_CXSCREEN] = ppdev->gdiinfo.ulHorzRes;
|
||||||
|
gpsi->aiSysMet[SM_CYSCREEN] = ppdev->gdiinfo.ulVertRes;
|
||||||
if (ppdev->gdiinfo.flRaster & RC_PALETTE)
|
if (ppdev->gdiinfo.flRaster & RC_PALETTE)
|
||||||
{
|
{
|
||||||
gpsi->PUSIFlags |= PUSIF_PALETTEDISPLAY;
|
gpsi->PUSIFlags |= PUSIF_PALETTEDISPLAY;
|
||||||
|
@ -855,10 +857,13 @@ UserChangeDisplaySettings(
|
||||||
//IntHideDesktop(pdesk);
|
//IntHideDesktop(pdesk);
|
||||||
|
|
||||||
/* Send WM_DISPLAYCHANGE to all toplevel windows */
|
/* Send WM_DISPLAYCHANGE to all toplevel windows */
|
||||||
UserSendNotifyMessage(HWND_BROADCAST,
|
co_IntSendMessageTimeout( HWND_BROADCAST,
|
||||||
WM_DISPLAYCHANGE,
|
WM_DISPLAYCHANGE,
|
||||||
gpsi->BitCount,
|
gpsi->BitCount,
|
||||||
MAKELONG(gpsi->aiSysMet[SM_CXSCREEN], gpsi->aiSysMet[SM_CYSCREEN]));
|
MAKELONG(gpsi->aiSysMet[SM_CXSCREEN], gpsi->aiSysMet[SM_CYSCREEN]),
|
||||||
|
SMTO_NORMAL,
|
||||||
|
100,
|
||||||
|
&ulResult );
|
||||||
|
|
||||||
ERR("BitCount New %d Orig %d ChkNew %d\n",gpsi->BitCount,OrigBC,ppdev->gdiinfo.cBitsPixel);
|
ERR("BitCount New %d Orig %d ChkNew %d\n",gpsi->BitCount,OrigBC,ppdev->gdiinfo.cBitsPixel);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue