mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
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:
parent
c8d1fbc6d2
commit
925217b857
1 changed files with 2 additions and 4 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue