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
|
||||
{
|
||||
CopyRect(&clientRect, &lphc->textRect);
|
||||
clientRect = lphc->textRect;
|
||||
|
||||
InflateRect(&clientRect, EDIT_CONTROL_PADDING(), EDIT_CONTROL_PADDING());
|
||||
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:
|
||||
if (lParam)
|
||||
CopyRect((LPRECT)lParam, &es->format_rect);
|
||||
*((LPRECT)lParam) = es->format_rect;
|
||||
break;
|
||||
|
||||
case EM_SETRECT:
|
||||
|
|
|
@ -1683,7 +1683,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
|
|||
if (!pvParam) return FALSE;
|
||||
|
||||
spi_idx = SPI_SETWORKAREA_IDX;
|
||||
CopyRect( &work_area, pvParam );
|
||||
work_area = *(RECT*)pvParam;
|
||||
spi_loaded[spi_idx] = TRUE;
|
||||
ret = TRUE;
|
||||
break;
|
||||
|
@ -1702,7 +1702,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
|
|||
EnumDisplayMonitors( 0, NULL, enum_monitors, (LPARAM)&work_area );
|
||||
spi_loaded[spi_idx] = TRUE;
|
||||
}
|
||||
CopyRect( pvParam, &work_area );
|
||||
*(RECT*)pvParam = work_area;
|
||||
ret = TRUE;
|
||||
TRACE("work area %s\n", wine_dbgstr_rect( &work_area ));
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue