https://git.reactos.org/?p=reactos.git;a=commitdiff;h=236ddd4f50777799b3ef3…
commit 236ddd4f50777799b3ef36b68c8a91b354621ec1
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Tue Jan 11 18:05:36 2022 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Tue Jan 11 23:47:55 2022 +0100
[DESK] Update available settings when selecting another display
---
dll/cpl/desk/settings.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dll/cpl/desk/settings.c b/dll/cpl/desk/settings.c
index eaf9bfb76b3..fb8a2d475f5 100644
--- a/dll/cpl/desk/settings.c
+++ b/dll/cpl/desk/settings.c
@@ -879,6 +879,15 @@ SettingsPageProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN
LPARAM lPar
ApplyDisplaySettings(hwndDlg, pData);
}
}
+ else if (lpnm->code == MSLN_MONITORCHANGED)
+ {
+ PMONSL_MONNMMONITORCHANGING lpnmi = (PMONSL_MONNMMONITORCHANGING)lParam;
+ PDISPLAY_DEVICE_ENTRY Current = pData->DisplayDeviceList;
+ ULONG i;
+ for (i = 0; i < lpnmi->hdr.Index; i++)
+ Current = Current->Flink;
+ OnDisplayDeviceChanged(hwndDlg, pData, Current);
+ }
break;
}