[FORMATTING] Remove trailing whitespace. Addendum to 34593d93.

Excluded: 3rd-party code (incl. wine) and most of the win32ss.
This commit is contained in:
Hermès Bélusca-Maïto 2021-09-13 03:33:14 +02:00
parent bbabe2489e
commit 9393fc320e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
701 changed files with 14685 additions and 14693 deletions

View file

@ -1,7 +1,7 @@
Solitaire for ReactOS
/*****************************************
A complete working example of the CardLib
A complete working example of the CardLib
card-game library.
Freeware

View file

@ -26,12 +26,12 @@ void NewGame(void)
lScore = lScore - 52;
else
lScore = -52;
if (dwOptions & OPTION_THREE_CARDS)
dwWasteTreshold = 2;
else
dwWasteTreshold = 0;
}
else
{
@ -262,7 +262,7 @@ bool CARDLIBPROC SuitStackDropProc(CardRegion &stackobj, CardStack &dragcards)
{
lScore = lScore + 10;
}
UpdateStatusBar();
}
}

View file

@ -341,7 +341,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
else
EnableWindow(hCtrl, FALSE);
return TRUE;
case IDOK:
dwOptions &= ~OPTION_THREE_CARDS;
if (IsDlgButtonChecked(hDlg, IDC_OPT_DRAWTHREE) == BST_CHECKED)
@ -623,7 +623,7 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
// For now, the Help dialog item is disabled because of lacking of HTML Help support
EnableMenuItem(GetMenu(hwnd), IDM_HELP_CONTENTS, MF_BYCOMMAND | MF_GRAYED);
hwndStatus = CreateStatusWindow(WS_CHILD | WS_VISIBLE | CCS_BOTTOM | SBARS_SIZEGRIP, _T("Ready"), hwnd, 0);
//SendMessage(hwndStatus, SB_SIMPLE, (WPARAM)TRUE, 0);

View file

@ -29,7 +29,7 @@ CardStack CreatePlayDeck()
{
CardStack newStack;
int i, colors = 1, num = 0;
switch (dwDifficulty)
{
case IDC_DIF_ONECOLOR:
@ -55,7 +55,7 @@ void NewGame(void)
{
int i, j;
/* First four stack with five, all other with 4 */
int covCards = 5;
int covCards = 5;
CardStack fakeDeck, temp;
SpiderWnd.EmptyStacks();
@ -65,14 +65,14 @@ void NewGame(void)
deck.Shuffle();
fakeDeck.NewDeck();
fakeDeck.Shuffle();
/* Reset progress value */
cardsFinished = 0;
/* Deal to each stack */
for (i = 0; i < NUM_STACKS; i++)
{
temp.Clear();
temp.Clear();
if (i == NUM_SMALLER_STACKS)
{
covCards--;
@ -85,7 +85,7 @@ void NewGame(void)
pStack[i]->SetCardStack(temp);
}
/* Deal five fake cards to the deck */
pDeck->SetCardStack(fakeDeck.Pop(5));
pDeck->SetCardStack(fakeDeck.Pop(5));
SpiderWnd.Redraw();
fGameStarted = false;
@ -103,7 +103,7 @@ bool stackLookingGood(const CardStack &mystack, int numChecks)
if (mystack[i].Suit() != mystack[i + 1].Suit())
{
return false;
}
}
}
return true;
}
@ -172,8 +172,8 @@ bool CARDLIBPROC StackDragProc(CardRegion &stackobj, int numDragCards)
stackobj.GetFaceDirection(&numfacedown);
numcards = stackobj.NumCards();
/* Only cards facing up */
/* Only cards facing up */
if (numDragCards <= numcards - numfacedown)
{
const CardStack &mystack = stackobj.GetCardStack();
@ -228,7 +228,7 @@ bool CARDLIBPROC StackDropProc(CardRegion &stackobj, CardStack &dragcards)
{
return false;
}
/* If stack is empty, everything can be dropped */
if (stackobj.NumCards() != 0)
{
@ -245,12 +245,12 @@ bool CARDLIBPROC StackDropProc(CardRegion &stackobj, CardStack &dragcards)
faceup = stackobj.NumCards() - facedown;
if (faceup + dragcards.NumCards() >= NUM_ONECOLOR_CARDS)
{
{
int i, max = NUM_ONECOLOR_CARDS - dragcards.NumCards() - 1;
/* Dragged cards have been checked to be in order, check stack cards */
if (mystack[0].Suit() == dragcard.Suit() &&
stackLookingGood(mystack, max))
stackLookingGood(mystack, max))
{
CardStack s = stackobj.GetCardStack();
CardStack f;