user32: Use straight assignments instead of CopyRect().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
da02140b43
commit
07f9f71278
|
@ -777,7 +777,7 @@ static void CBPaintBorder(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CopyRect(&clientRect, &lphc->textRect);
|
clientRect = lphc->textRect;
|
||||||
|
|
||||||
InflateRect(&clientRect, EDIT_CONTROL_PADDING(), EDIT_CONTROL_PADDING());
|
InflateRect(&clientRect, EDIT_CONTROL_PADDING(), EDIT_CONTROL_PADDING());
|
||||||
InflateRect(&clientRect, COMBO_XBORDERSIZE(), COMBO_YBORDERSIZE());
|
InflateRect(&clientRect, COMBO_XBORDERSIZE(), COMBO_YBORDERSIZE());
|
||||||
|
|
|
@ -4665,7 +4665,7 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
|
||||||
|
|
||||||
case EM_GETRECT:
|
case EM_GETRECT:
|
||||||
if (lParam)
|
if (lParam)
|
||||||
CopyRect((LPRECT)lParam, &es->format_rect);
|
*((LPRECT)lParam) = es->format_rect;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EM_SETRECT:
|
case EM_SETRECT:
|
||||||
|
|
|
@ -1683,7 +1683,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
|
||||||
if (!pvParam) return FALSE;
|
if (!pvParam) return FALSE;
|
||||||
|
|
||||||
spi_idx = SPI_SETWORKAREA_IDX;
|
spi_idx = SPI_SETWORKAREA_IDX;
|
||||||
CopyRect( &work_area, pvParam );
|
work_area = *(RECT*)pvParam;
|
||||||
spi_loaded[spi_idx] = TRUE;
|
spi_loaded[spi_idx] = TRUE;
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
break;
|
break;
|
||||||
|
@ -1702,7 +1702,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
|
||||||
EnumDisplayMonitors( 0, NULL, enum_monitors, (LPARAM)&work_area );
|
EnumDisplayMonitors( 0, NULL, enum_monitors, (LPARAM)&work_area );
|
||||||
spi_loaded[spi_idx] = TRUE;
|
spi_loaded[spi_idx] = TRUE;
|
||||||
}
|
}
|
||||||
CopyRect( pvParam, &work_area );
|
*(RECT*)pvParam = work_area;
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
TRACE("work area %s\n", wine_dbgstr_rect( &work_area ));
|
TRACE("work area %s\n", wine_dbgstr_rect( &work_area ));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue