Author: cfinck
Date: Fri Oct 19 02:04:50 2007
New Revision: 29664
URL:
http://svn.reactos.org/svn/reactos?rev=29664&view=rev
Log:
Use StretchBlt with fixed values for drawing the card backs in the Deck Options dialog.
This way the dialog looks normally, also with bigger cards like the Bavarian ones.
Modified:
trunk/reactos/base/applications/games/solitaire/solitaire.cpp
trunk/reactos/base/applications/games/solitaire/solitaire.h
Modified: trunk/reactos/base/applications/games/solitaire/solitaire.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/so…
==============================================================================
--- trunk/reactos/base/applications/games/solitaire/solitaire.cpp (original)
+++ trunk/reactos/base/applications/games/solitaire/solitaire.cpp Fri Oct 19 02:04:50
2007
@@ -323,15 +323,17 @@
rc.right,
rc.bottom);
- BitBlt(hdc,
- 2,
- 2,
- __cardwidth,
- __cardheight,
- __hdcCardBitmaps,
- pCardBack->hdcNum * __cardwidth,
- 0,
- SRCCOPY);
+ StretchBlt(hdc,
+ 2,
+ 2,
+ CARDBACK_OPTIONS_WIDTH,
+ CARDBACK_OPTIONS_HEIGHT,
+ __hdcCardBitmaps,
+ pCardBack->hdcNum * __cardwidth,
+ 0,
+ __cardwidth,
+ __cardheight,
+ SRCCOPY);
SelectObject(hdc, hOldPen);
SelectObject(hdc, hOldBrush);
Modified: trunk/reactos/base/applications/games/solitaire/solitaire.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/so…
==============================================================================
--- trunk/reactos/base/applications/games/solitaire/solitaire.h (original)
+++ trunk/reactos/base/applications/games/solitaire/solitaire.h Fri Oct 19 02:04:50 2007
@@ -5,12 +5,14 @@
extern TCHAR szAppName[];
extern bool fGameStarted;
-#define OPTION_SHOW_STATUS 4
-#define OPTION_THREE_CARDS 8
-#define CARDBACK_START IDC_CARDBACK1
-#define CARDBACK_END IDC_CARDBACK4
-#define NUM_CARDBACKS (CARDBACK_END - CARDBACK_START + 1)
-#define CARDBACK_RES_START 53
+#define OPTION_SHOW_STATUS 4
+#define OPTION_THREE_CARDS 8
+#define CARDBACK_START IDC_CARDBACK1
+#define CARDBACK_END IDC_CARDBACK4
+#define NUM_CARDBACKS (CARDBACK_END - CARDBACK_START + 1)
+#define CARDBACK_RES_START 53
+#define CARDBACK_OPTIONS_WIDTH 72
+#define CARDBACK_OPTIONS_HEIGHT 96
extern DWORD dwOptions;