X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16553659df1a8fee8b19cc9a8ff8321711fe983c..6c56b261b7a0159516b46c57be8a85a281eaefd8:/samples/forty/canvas.cpp diff --git a/samples/forty/canvas.cpp b/samples/forty/canvas.cpp index 7a5dfe4010..373e16942f 100644 --- a/samples/forty/canvas.cpp +++ b/samples/forty/canvas.cpp @@ -51,7 +51,7 @@ FortyCanvas::FortyCanvas(wxWindow* parent, int x, int y, int w, int h) : m_font = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxNORMAL); #endif SetBackgroundColour(FortyApp::BackgroundColour()); - AllowDoubleClick(true); + AllowDoubleClick(TRUE); m_handCursor = new wxCursor(wxCURSOR_HAND); m_arrowCursor = new wxCursor(wxCURSOR_ARROW); @@ -123,13 +123,13 @@ void FortyCanvas::OnDraw(wxDC& dc) /* Called when the main frame is closed */ -bool FortyCanvas::OnClose() +bool FortyCanvas::OnCloseCanvas() { if (m_game->InPlay() && wxMessageBox("Are you sure you want to\nabandon the current game?", "Warning", wxYES_NO | wxICON_QUESTION) == wxNO) { - return FALSE; + return FALSE; } return TRUE; }