[WINMINE] Sync with Wine Staging 2.16. CORE-13762

ca8f056 winemine: Added Shift+LClick hotkey to uncover multiple cells.
9b90266 winemine: Mine random placing fix.

svn path=/trunk/; revision=75948
This commit is contained in:
Amine Khaldi 2017-09-24 11:18:18 +00:00
parent 1f77be3c1e
commit f1c2481230
2 changed files with 5 additions and 5 deletions

View file

@ -342,8 +342,8 @@ static void PlaceMines ( BOARD *p_board, int selected_col, int selected_row )
/* create mines */
i = 0;
while( (unsigned) i < p_board->mines ) {
col = (int) (p_board->cols * (float) rand() / RAND_MAX + 1);
row = (int) (p_board->rows * (float) rand() / RAND_MAX + 1);
col = rand() % p_board->cols + 1;
row = rand() % p_board->rows + 1;
if( !p_board->box[col][row].IsMine ) {
i++;
@ -883,7 +883,7 @@ static LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
case WM_LBUTTONDOWN:
WINE_TRACE("WM_LBUTTONDOWN\n");
if( wParam & MK_RBUTTON )
if( wParam & ( MK_RBUTTON | MK_SHIFT ) )
msg = WM_MBUTTONDOWN;
TestBoard( hWnd, &board, (short)LOWORD(lParam), (short)HIWORD(lParam), msg );
SetCapture( hWnd );
@ -891,7 +891,7 @@ static LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
case WM_LBUTTONUP:
WINE_TRACE("WM_LBUTTONUP\n");
if( wParam & MK_RBUTTON )
if( wParam & ( MK_RBUTTON | MK_SHIFT ) )
msg = WM_MBUTTONUP;
TestBoard( hWnd, &board, (short)LOWORD(lParam), (short)HIWORD(lParam), msg );
ReleaseCapture();

View file

@ -233,7 +233,7 @@ reactos/base/applications/cmdutils/taskkill # Synced to WineStaging-2.9
reactos/base/applications/cmdutils/wmic # Synced to WineStaging-2.9
reactos/base/applications/cmdutils/wscript # Synced to WineStaging-2.9
reactos/base/applications/cmdutils/xcopy # Synced to WineStaging-2.9
reactos/base/applications/games/winmine # Synced to WineStaging-1.9.16 with our own resources.
reactos/base/applications/games/winmine # Synced to WineStaging-2.16 with our own resources.
reactos/base/applications/extrac32 # Synced to WineStaging-2.9
reactos/base/applications/iexplore # Synced to WineStaging-2.9
reactos/base/applications/notepad # Forked at Wine-20041201