Author: akhaldi
Date: Wed Jan 13 18:07:32 2016
New Revision: 70592
URL:
http://svn.reactos.org/svn/reactos?rev=70592&view=rev
Log:
[0.4.0] * Merge desk.cpl fixes by Mark Jansen in r70577. CORE-10786
Modified:
branches/ros-branch-0_4_0/ (props changed)
branches/ros-branch-0_4_0/reactos/ (props changed)
branches/ros-branch-0_4_0/reactos/dll/cpl/desk/monslctl.c
branches/ros-branch-0_4_0/reactos/dll/cpl/desk/settings.c
Propchange: branches/ros-branch-0_4_0/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Jan 13 18:07:32 2016
@@ -1 +1 @@
-/trunk:70000-70321,70323-70324,70328-70337,70339-70340,70347,70349,70354-70358,70360,70363,70369,70373,70375-70378,70381,70384-70385,70387-70389,70398,70400,70408,70424,70433-70437,70443,70445-70449,70454,70464,70468,70470,70480,70497,70499-70501,70507-70510,70512-70513,70523,70527-70530,70536-70537,70545-70548,70552-70554,70557-70558,70576,70578,70583
+/trunk:70000-70321,70323-70324,70328-70337,70339-70340,70347,70349,70354-70358,70360,70363,70369,70373,70375-70378,70381,70384-70385,70387-70389,70398,70400,70408,70424,70433-70437,70443,70445-70449,70454,70464,70468,70470,70480,70497,70499-70501,70507-70510,70512-70513,70523,70527-70530,70536-70537,70545-70548,70552-70554,70557-70558,70576-70578,70583
Propchange: branches/ros-branch-0_4_0/reactos/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Jan 13 18:07:32 2016
@@ -20,4 +20,4 @@
/branches/usb-bringup:51335,51337,51341-51343,51348,51350,51353,51355,51365-51369,51372,51384-54388,54396-54398,54736-54737,54752-54754,54756-54760,54762,54764-54765,54767-54768,54772,54774-54777,54781,54787,54790-54792,54797-54798,54806,54808,54834-54838,54843,54850,54852,54856,54858-54859
/branches/usb-bringup-trunk:55019-55543,55548-55554,55556-55567
/branches/wlan-bringup:54809-54998
-/trunk/reactos:70000-70321,70323-70324,70328-70337,70339-70340,70347,70349,70354-70358,70360,70363,70369,70373,70375-70378,70381,70384-70385,70387-70389,70398,70400,70408,70424,70433-70437,70443,70445-70449,70454,70464,70468,70470,70480,70497,70501,70507-70510,70523,70527-70530,70536-70537,70545-70548,70552-70554,70557-70558,70576,70578,70583
+/trunk/reactos:70000-70321,70323-70324,70328-70337,70339-70340,70347,70349,70354-70358,70360,70363,70369,70373,70375-70378,70381,70384-70385,70387-70389,70398,70400,70408,70424,70433-70437,70443,70445-70449,70454,70464,70468,70470,70480,70497,70501,70507-70510,70523,70527-70530,70536-70537,70545-70548,70552-70554,70557-70558,70576-70578,70583
Modified: branches/ros-branch-0_4_0/reactos/dll/cpl/desk/monslctl.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-branch-0_4_0/reactos/dll/cp…
==============================================================================
--- branches/ros-branch-0_4_0/reactos/dll/cpl/desk/monslctl.c [iso-8859-1] (original)
+++ branches/ros-branch-0_4_0/reactos/dll/cpl/desk/monslctl.c [iso-8859-1] Wed Jan 13
18:07:32 2016
@@ -39,6 +39,7 @@
PMONSL_MON Monitors;
RECT rcExtent;
RECT rcMonitors;
+ RECT rcOldMonitors;
POINT ScrollPos;
SIZE Margin;
SIZE SelectionFrame;
@@ -261,6 +262,14 @@
InvalidateRect(infoPtr->hSelf,
&rc,
TRUE);
+
+ if (!EqualRect(&infoPtr->rcMonitors, &infoPtr->rcOldMonitors)
&&
+ infoPtr->rcOldMonitors.right != infoPtr->rcOldMonitors.left)
+ {
+ MonSelRectToScreen(infoPtr, &infoPtr->rcOldMonitors, &rc);
+ InvalidateRect(infoPtr->hSelf, &rc, TRUE);
+ infoPtr->rcOldMonitors = infoPtr->rcMonitors;
+ }
}
static VOID
@@ -355,6 +364,7 @@
ScaleRectSizeFit(&rcExtSurface,
&rcExtDisplay);
+ infoPtr->rcOldMonitors = infoPtr->rcMonitors;
infoPtr->rcMonitors = rcExtDisplay;
/* Now that we know in which area all monitors are located,
Modified: branches/ros-branch-0_4_0/reactos/dll/cpl/desk/settings.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-branch-0_4_0/reactos/dll/cp…
==============================================================================
--- branches/ros-branch-0_4_0/reactos/dll/cpl/desk/settings.c [iso-8859-1] (original)
+++ branches/ros-branch-0_4_0/reactos/dll/cpl/desk/settings.c [iso-8859-1] Wed Jan 13
18:07:32 2016
@@ -26,6 +26,8 @@
TCHAR Buffer[64];
TCHAR Pixel[64];
DWORD index;
+ HWND hwndMonSel;
+ MONSL_MONINFO info;
LoadString(hApplet, IDS_PIXEL, Pixel, sizeof(Pixel) / sizeof(TCHAR));
_stprintf(Buffer, Pixel,
pData->CurrentDisplayDevice->CurrentSettings->dmPelsWidth,
pData->CurrentDisplayDevice->CurrentSettings->dmPelsHeight, Pixel);
@@ -43,6 +45,15 @@
}
if (LoadString(hApplet, (2900 +
pData->CurrentDisplayDevice->CurrentSettings->dmBitsPerPel), Buffer,
sizeof(Buffer) / sizeof(TCHAR)))
SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, (WPARAM)-1,
(LPARAM)Buffer);
+
+ hwndMonSel = GetDlgItem(hwndDlg, IDC_SETTINGS_MONSEL);
+ index = (INT)SendMessage(hwndMonSel, MSLM_GETCURSEL, 0, 0);
+ if (index != (DWORD)-1 && SendMessage(hwndMonSel, MSLM_GETMONITORINFO, index,
(LPARAM)&info))
+ {
+ info.Size.cx =
pData->CurrentDisplayDevice->CurrentSettings->dmPelsWidth;
+ info.Size.cy =
pData->CurrentDisplayDevice->CurrentSettings->dmPelsHeight;
+ SendMessage(hwndMonSel, MSLM_SETMONITORINFO, index, (LPARAM)&info);
+ }
}
static PSETTINGS_ENTRY
@@ -165,8 +176,8 @@
for (Current = newEntry->Settings; Current != NULL; Current = Current->Flink)
{
if (Current->Flink != NULL &&
- ((Current->dmPelsWidth != Current->Flink->dmPelsWidth) &&
- (Current->dmPelsHeight != Current->Flink->dmPelsHeight)))
+ ((Current->dmPelsWidth != Current->Flink->dmPelsWidth) ||
+ (Current->dmPelsHeight != Current->Flink->dmPelsHeight)))
{
ResolutionsCount++;
}
@@ -182,8 +193,8 @@
{
if (Current->Flink == NULL ||
(Current->Flink != NULL &&
- ((Current->dmPelsWidth != Current->Flink->dmPelsWidth) &&
- (Current->dmPelsHeight != Current->Flink->dmPelsHeight))))
+ ((Current->dmPelsWidth != Current->Flink->dmPelsWidth) ||
+ (Current->dmPelsHeight != Current->Flink->dmPelsHeight))))
{
newEntry->Resolutions[i].dmPelsWidth = Current->dmPelsWidth;
newEntry->Resolutions[i].dmPelsHeight = Current->dmPelsHeight;