winemine: Use SetRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-06-30 10:53:46 +02:00 committed by Alexandre Julliard
parent c8d1fbc6d2
commit 925217b857

View file

@ -313,10 +313,8 @@ static void CreateBoard( BOARD *p_board )
p_board->face_bmp = SMILE_BMP; p_board->face_bmp = SMILE_BMP;
p_board->time = 0; p_board->time = 0;
wnd_rect.left = p_board->pos.x; SetRect(&wnd_rect, p_board->pos.x, p_board->pos.y, p_board->pos.x + p_board->width,
wnd_rect.right = p_board->pos.x + p_board->width; p_board->pos.y + p_board->height);
wnd_rect.top = p_board->pos.y;
wnd_rect.bottom = p_board->pos.y + p_board->height;
AdjustWindowRect(&wnd_rect, wnd_style, TRUE); AdjustWindowRect(&wnd_rect, wnd_style, TRUE);
/* Make sure the window is completely on the screen */ /* Make sure the window is completely on the screen */