Removed leaks from Forty demo
Added VC++ project file for artprov sample Updated file lists git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,6 +68,8 @@ FortyCanvas::~FortyCanvas()
|
||||
UpdateScores();
|
||||
delete m_game;
|
||||
delete m_scoreFile;
|
||||
delete m_handCursor;
|
||||
delete m_arrowCursor;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -33,13 +33,14 @@ enum Suit { clubs = 0, diamonds = 1, hearts = 2, spades = 3 };
|
||||
enum SuitColour { red = 0, black = 1 };
|
||||
enum WayUp { faceup, facedown };
|
||||
|
||||
|
||||
//--------------------------------//
|
||||
// A class defining a single card //
|
||||
//--------------------------------//
|
||||
class Card {
|
||||
static double m_scale;
|
||||
static int m_width,m_height;
|
||||
friend class FortyApp;
|
||||
|
||||
static double m_scale;
|
||||
static int m_width,m_height;
|
||||
|
||||
public:
|
||||
Card(int value, WayUp way_up = facedown);
|
||||
|
@@ -52,6 +52,20 @@ wxColour* FortyApp::m_backgroundColour = 0;
|
||||
wxColour* FortyApp::m_textColour = 0;
|
||||
wxBrush* FortyApp::m_backgroundBrush = 0;
|
||||
|
||||
FortyApp::FortyApp()
|
||||
{
|
||||
}
|
||||
|
||||
FortyApp::~FortyApp()
|
||||
{
|
||||
delete m_backgroundColour;
|
||||
delete m_textColour;
|
||||
delete m_backgroundBrush;
|
||||
delete Card::m_symbolBmap;
|
||||
delete Card::m_pictureBmap;
|
||||
|
||||
}
|
||||
|
||||
bool FortyApp::OnInit()
|
||||
{
|
||||
bool largecards = FALSE;
|
||||
|
@@ -16,6 +16,8 @@
|
||||
class FortyApp: public wxApp
|
||||
{
|
||||
public:
|
||||
FortyApp();
|
||||
~FortyApp();
|
||||
bool OnInit();
|
||||
|
||||
static const wxColour& BackgroundColour();
|
||||
|
Reference in New Issue
Block a user