#include "forty.h"
#include "card.h"
-#ifdef __WXGTK__
+#if defined(__WXGTK__) || defined(__WXMOTIF__)
#include "pictures.xpm"
#include "symbols.xbm"
#endif
//+-------------------------------------------------------------+
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);
}
}
- dc.SetBackground(* backgroundBrush);
+ dc.SetBackground( backgroundBrush );
} // Card:Draw()