X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7995487f3032d8415f87619efac7c391c72730..93c4157c6cf8603eaba7ebbbc3b1e7bd303d8241:/demos/forty/pile.cpp?ds=inline diff --git a/demos/forty/pile.cpp b/demos/forty/pile.cpp index 4622829964..34796835c1 100644 --- a/demos/forty/pile.cpp +++ b/demos/forty/pile.cpp @@ -40,6 +40,8 @@ #include #include "card.h" #include "pile.h" +#include "forty.h" +#include "canvas.h" #include "wx/app.h" @@ -75,12 +77,11 @@ Pile::Pile(int x, int y, int dx, int dy) //+-------------------------------------------------------------+ void Pile::Redraw(wxDC& dc ) { - wxWindow *frame = wxTheApp->GetTopWindow(); + FortyFrame *frame = (FortyFrame*) wxTheApp->GetTopWindow(); wxWindow *canvas = (wxWindow *) NULL; if (frame) { - wxNode *node = frame->GetChildren().First(); - if (node) canvas = (wxWindow*)node->Data(); + canvas = frame->GetCanvas(); } if (m_topCard >= 0)