mirror of
https://github.com/reactos/reactos.git
synced 2025-06-08 10:50:28 +00:00
Apal (Bug 1632): "I tested winemine but I really didn't enjoy the color combination, so I decided to change it a little bit so as to appear more like classic Windows' minesweeper!"
svn path=/trunk/; revision=23284
This commit is contained in:
parent
3fadd1de23
commit
cb544d38c3
3 changed files with 7 additions and 7 deletions
|
@ -58,7 +58,7 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmd
|
||||||
wc.hInstance = hInst;
|
wc.hInstance = hInst;
|
||||||
wc.hIcon = LoadIcon( hInst, appname );
|
wc.hIcon = LoadIcon( hInst, appname );
|
||||||
wc.hCursor = LoadCursor( NULL_HANDLE, (LPCTSTR)IDI_APPLICATION );
|
wc.hCursor = LoadCursor( NULL_HANDLE, (LPCTSTR)IDI_APPLICATION );
|
||||||
wc.hbrBackground = (HBRUSH) GetStockObject( BLACK_BRUSH );
|
wc.hbrBackground = (HBRUSH) GetStockObject( LTGRAY_BRUSH );
|
||||||
wc.lpszMenuName = "MENU_WINEMINE";
|
wc.lpszMenuName = "MENU_WINEMINE";
|
||||||
wc.lpszClassName = appname;
|
wc.lpszClassName = appname;
|
||||||
|
|
||||||
|
@ -519,14 +519,14 @@ void CreateBoard( BOARD *p_board )
|
||||||
top = BOARD_HMARGIN;
|
top = BOARD_HMARGIN;
|
||||||
right = left + LED_WIDTH * 3;
|
right = left + LED_WIDTH * 3;
|
||||||
bottom = top + LED_HEIGHT;
|
bottom = top + LED_HEIGHT;
|
||||||
SetRect( &p_board->timer_rect, left, top, right, bottom );
|
SetRect( &p_board->counter_rect, left, top, right, bottom );
|
||||||
|
|
||||||
/* setting the counter rectangle boundary */
|
/* setting the counter rectangle boundary */
|
||||||
left = p_board->width - BOARD_WMARGIN - LED_WIDTH * 3;
|
left = p_board->width - BOARD_WMARGIN - LED_WIDTH * 3;
|
||||||
top = BOARD_HMARGIN;
|
top = BOARD_HMARGIN;
|
||||||
right = p_board->width - BOARD_WMARGIN;
|
right = p_board->width - BOARD_WMARGIN;
|
||||||
bottom = top + LED_HEIGHT;
|
bottom = top + LED_HEIGHT;
|
||||||
SetRect( &p_board->counter_rect, left, top, right, bottom );
|
SetRect( &p_board->timer_rect, left, top, right, bottom );
|
||||||
|
|
||||||
p_board->status = WAITING;
|
p_board->status = WAITING;
|
||||||
p_board->face_bmp = SMILE_BMP;
|
p_board->face_bmp = SMILE_BMP;
|
||||||
|
@ -723,9 +723,9 @@ void DrawLeds( HDC hdc, HDC hMemDC, BOARD *p_board, int number, int x, int y )
|
||||||
}
|
}
|
||||||
|
|
||||||
/* use unlit led if not playing */
|
/* use unlit led if not playing */
|
||||||
if( p_board->status == WAITING )
|
/* if( p_board->status == WAITING )
|
||||||
for( i = 0; i < 3; i++ )
|
for( i = 0; i < 3; i++ )
|
||||||
led[i] = 11;
|
led[i] = 11;*/
|
||||||
|
|
||||||
hOldObj = SelectObject (hMemDC, p_board->hLedsBMP);
|
hOldObj = SelectObject (hMemDC, p_board->hLedsBMP);
|
||||||
|
|
||||||
|
@ -766,7 +766,7 @@ void DrawBoard( HDC hdc, HDC hMemDC, PAINTSTRUCT *ps, BOARD *p_board )
|
||||||
{
|
{
|
||||||
RECT tmp_rect;
|
RECT tmp_rect;
|
||||||
|
|
||||||
if( IntersectRect( &tmp_rect, &ps->rcPaint, &p_board->counter_rect ) )
|
if( IntersectRect( &tmp_rect, &ps->rcPaint, &p_board->counter_rect) )
|
||||||
DrawLeds( hdc, hMemDC, p_board, p_board->mines - p_board->num_flags,
|
DrawLeds( hdc, hMemDC, p_board, p_board->mines - p_board->num_flags,
|
||||||
p_board->counter_rect.left,
|
p_board->counter_rect.left,
|
||||||
p_board->counter_rect.top );
|
p_board->counter_rect.top );
|
||||||
|
@ -774,7 +774,7 @@ void DrawBoard( HDC hdc, HDC hMemDC, PAINTSTRUCT *ps, BOARD *p_board )
|
||||||
if( IntersectRect( &tmp_rect, &ps->rcPaint, &p_board->timer_rect ) )
|
if( IntersectRect( &tmp_rect, &ps->rcPaint, &p_board->timer_rect ) )
|
||||||
DrawLeds( hdc, hMemDC, p_board, p_board->time,
|
DrawLeds( hdc, hMemDC, p_board, p_board->time,
|
||||||
p_board->timer_rect.left,
|
p_board->timer_rect.left,
|
||||||
p_board->timer_rect.top );
|
p_board->timer_rect.top);
|
||||||
|
|
||||||
if( IntersectRect( &tmp_rect, &ps->rcPaint, &p_board->face_rect ) )
|
if( IntersectRect( &tmp_rect, &ps->rcPaint, &p_board->face_rect ) )
|
||||||
DrawFace( hdc, hMemDC, p_board );
|
DrawFace( hdc, hMemDC, p_board );
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in a new issue