Author: dreimer
Date: Wed Aug 6 11:24:31 2014
New Revision: 63816
URL:
http://svn.reactos.org/svn/reactos?rev=63816&view=rev
Log:
[SPIDER]
Optimize borders and space to the window frame even more. Hopefully fixes spider being too
big for 800x600 problem.
CORE-8409 #comment Committed a "fix", please retest.
Modified:
trunk/reactos/base/applications/games/spider/spider.cpp
trunk/reactos/base/applications/games/spider/spider.h
trunk/reactos/base/applications/games/spider/spigame.cpp
Modified: trunk/reactos/base/applications/games/spider/spider.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/sp…
==============================================================================
--- trunk/reactos/base/applications/games/spider/spider.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/spider/spider.cpp [iso-8859-1] Wed Aug 6
11:24:31 2014
@@ -359,7 +359,7 @@
MINMAXINFO *mmi;
mmi = (MINMAXINFO *)lParam;
- mmi->ptMinTrackSize.x = NUM_STACKS * __cardwidth + (NUM_STACKS + 3) *
X_BORDER + 20; // Border left and right of 10px
+ mmi->ptMinTrackSize.x = NUM_STACKS * __cardwidth + (NUM_STACKS + 3) *
X_BORDER + 12; // Border left and right of 6px
mmi->ptMinTrackSize.y = GetSystemMetrics(SM_CYCAPTION) +
GetSystemMetrics(SM_CYMENU) +
2 * Y_BORDER +
Modified: trunk/reactos/base/applications/games/spider/spider.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/sp…
==============================================================================
--- trunk/reactos/base/applications/games/spider/spider.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/spider/spider.h [iso-8859-1] Wed Aug 6 11:24:31
2014
@@ -15,8 +15,8 @@
#define CARDBACK_OPTIONS_WIDTH 72
#define CARDBACK_OPTIONS_HEIGHT 112
-#define X_BORDER 6
-#define Y_BORDER 6
+#define X_BORDER 4
+#define Y_BORDER 4
#define NUM_STACKS 10
Modified: trunk/reactos/base/applications/games/spider/spigame.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/sp…
==============================================================================
--- trunk/reactos/base/applications/games/spider/spigame.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/spider/spigame.cpp [iso-8859-1] Wed Aug 6
11:24:31 2014
@@ -298,7 +298,7 @@
pStack[i]->SetFaceDirection(CS_FACE_DOWN, 0);
pos = i - NUM_STACKS/2;
pStack[i]->SetPlacement(CS_XJUST_CENTER, 0,
- pos * (__cardwidth + X_BORDER) + 6 * X_BORDER, 0);
+ pos * (__cardwidth + X_BORDER) + 6 * (X_BORDER + 2) + 2, 0);
pStack[i]->SetEmptyImage(CS_EI_SUNK);
pStack[i]->SetDragRule(CS_DRAG_CALLBACK, StackDragProc);
pStack[i]->SetDropRule(CS_DROP_CALLBACK, StackDropProc);