Commit 925217b8 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent c8d1fbc6
...@@ -313,10 +313,8 @@ static void CreateBoard( BOARD *p_board ) ...@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment