X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16553659df1a8fee8b19cc9a8ff8321711fe983c..8dd71e2b5181ea24c88cbdc5a921187260b045ae:/samples/forty/card.cpp diff --git a/samples/forty/card.cpp b/samples/forty/card.cpp index 691347254c..37999de3ed 100644 --- a/samples/forty/card.cpp +++ b/samples/forty/card.cpp @@ -41,7 +41,7 @@ #include "forty.h" #include "card.h" -#ifdef __WXGTK__ +#if defined(__WXGTK__) || defined(__WXMOTIF__) #include "pictures.xpm" #include "symbols.xbm" #endif @@ -171,7 +171,7 @@ void Card::Erase(wxDC& dc, int x, int y) //+-------------------------------------------------------------+ void Card::Draw(wxDC& dc, int x, int y) { - wxBrush* backgroundBrush = & dc.GetBackground(); + wxBrush backgroundBrush( dc.GetBackground() ); dc.SetBrush(* wxWHITE_BRUSH); dc.SetPen(* wxBLACK_PEN); dc.DrawRoundedRectangle(x, y, CardWidth, CardHeight, 4); @@ -336,7 +336,7 @@ void Card::Draw(wxDC& dc, int x, int y) } } - dc.SetBackground(* backgroundBrush); + dc.SetBackground( backgroundBrush ); } // Card:Draw()