mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 10:43:42 +00:00

- Whilst this is non-standard and potentially makes the code less portable, it's supported by both gcc and msvc and should bringg increased compilation speed due to its optimized behaviour (doesn't need to invoke the preprocessor) - Patch by Amine Khaldi [amine.khaldi@reactos.org] svn path=/trunk/; revision=45685
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
#pragma once
|
|
|
|
#define DIFFICULTY_ONE_COLOR 1
|
|
#define DIFFICULTY_TWO_COLORS 2
|
|
#define DIFFICULTY_FOUR_COLORS 3
|
|
#define CARDBACK_START IDC_CARDBACK1
|
|
#define CARDBACK_END IDC_CARDBACK12
|
|
#define NUM_CARDBACKS (CARDBACK_END - CARDBACK_START + 1)
|
|
#define CARDBACK_RES_START 53
|
|
/* Display option cards with half the size */
|
|
#define CARDBACK_OPTIONS_WIDTH 36
|
|
#define CARDBACK_OPTIONS_HEIGHT 48
|
|
|
|
#define X_BORDER 6
|
|
#define Y_BORDER 12
|
|
|
|
#define NUM_STACKS 10
|
|
|
|
extern HWND hwndMain;
|
|
extern CardWindow SpiderWnd;
|
|
extern TCHAR szAppName[];
|
|
extern bool fGameStarted;
|
|
extern int yRowStackCardOffset;
|
|
extern DWORD dwDifficulty;
|
|
extern TCHAR MsgDeal[];
|
|
extern TCHAR MsgWin[];
|
|
|
|
void CreateSpider();
|
|
void NewGame(void);
|
|
|
|
bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards);
|
|
bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, const CardStack &dragcards);
|
|
|
|
void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked);
|
|
|
|
void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked);
|
|
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
|
|
|
|
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
|