]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/game.cpp
scrolling windows need wx[HV]SCROLL style
[wxWidgets.git] / demos / forty / game.cpp
index 4226e58c713fa61e4ce0a30d0f0c77569011425c..dcf32e42b1d9ebfad9642351ebdd9ba2a4eaf716 100644 (file)
 // Last modified: 22nd July 1998 - ported to wxWidgets 2.0
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-#pragma implementation
-#pragma interface
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -238,9 +233,9 @@ void Game::DisplayScore(wxDC& dc)
     m_pack->GetTopCardPos(x, y);
     x += 12 * CardWidth - 105;
 
-    int w, h;
+    wxCoord w, h;
     {
-        long width, height;
+        wxCoord width, height;
         dc.GetTextExtent(_T("Average score:m_x"), &width, &height);
         w = width;
         h = height;
@@ -829,7 +824,7 @@ Pack::~Pack()
     {
         delete m_cards[m_topCard];
     }
-};
+}
 
 
 //------------------------------------------------------//