]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/card.cpp
Add default constructor to wxGraphicsGradientStop.
[wxWidgets.git] / demos / forty / card.cpp
index 7f126fdafad1687aa2a3c6fca16b95d5a36b9410..f1f9dea885d1e44c8772ab08f704d1b6430fdc2e 100644 (file)
@@ -62,7 +62,7 @@ Card::Card(int value, WayUp way_up) :
         m_symbolBmap = new wxBitmap(symbols_xpm);
         if (!m_symbolBmap->Ok())
         {
         m_symbolBmap = new wxBitmap(symbols_xpm);
         if (!m_symbolBmap->Ok())
         {
-            ::wxMessageBox(_T("Failed to load bitmap CardSymbols"), _T("Error"));
+            ::wxMessageBox(wxT("Failed to load bitmap CardSymbols"), wxT("Error"));
         }
     }
     if (!m_pictureBmap)
         }
     }
     if (!m_pictureBmap)
@@ -70,7 +70,7 @@ Card::Card(int value, WayUp way_up) :
         m_pictureBmap = new wxBitmap(Pictures);
         if (!m_pictureBmap->Ok())
         {
         m_pictureBmap = new wxBitmap(Pictures);
         if (!m_pictureBmap->Ok())
         {
-            ::wxMessageBox(_T("Failed to load bitmap CardPictures"), _T("Error"));
+            ::wxMessageBox(wxT("Failed to load bitmap CardPictures"), wxT("Error"));
         }
     }
 
         }
     }
 
@@ -170,7 +170,7 @@ void Card::Draw(wxDC& dc, int x, int y)
         dc.SetBackground(* wxRED_BRUSH);
         dc.SetBackgroundMode(wxSOLID);
         wxBrush* brush = wxTheBrushList->FindOrCreateBrush(
         dc.SetBackground(* wxRED_BRUSH);
         dc.SetBackgroundMode(wxSOLID);
         wxBrush* brush = wxTheBrushList->FindOrCreateBrush(
-                            _T("BLACK"), wxCROSSDIAG_HATCH
+                            *wxBLACK, wxCROSSDIAG_HATCH
                             );
         dc.SetBrush(* brush);
 
                             );
         dc.SetBrush(* brush);