X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..574be073c070a9bbe81ad68e98187b0b9e82c2df:/demos/forty/card.cpp?ds=inline diff --git a/demos/forty/card.cpp b/demos/forty/card.cpp index 25c9d532a4..44a0f65d4b 100644 --- a/demos/forty/card.cpp +++ b/demos/forty/card.cpp @@ -36,10 +36,8 @@ #include "forty.h" #include "card.h" -#ifndef __WXMSW__ #include "pictures.xpm" -#include "symbols.xbm" -#endif +#include "symbols.xpm" wxBitmap* Card::m_pictureBmap = 0; wxBitmap* Card::m_symbolBmap = 0; @@ -61,11 +59,7 @@ Card::Card(int value, WayUp way_up) : { if (!m_symbolBmap) { -#ifdef __WXMSW__ - m_symbolBmap = new wxBitmap(_T("CardSymbols"), wxBITMAP_TYPE_BMP_RESOURCE); -#else - m_symbolBmap = new wxBitmap(Symbols_bits, Symbols_width, Symbols_height); -#endif + m_symbolBmap = new wxBitmap(symbols_xpm); if (!m_symbolBmap->Ok()) { ::wxMessageBox(_T("Failed to load bitmap CardSymbols"), _T("Error")); @@ -73,11 +67,7 @@ Card::Card(int value, WayUp way_up) : } if (!m_pictureBmap) { -#ifdef __WXMSW__ - m_pictureBmap = new wxBitmap(_T("CardPictures"), wxBITMAP_TYPE_BMP_RESOURCE); -#else m_pictureBmap = new wxBitmap(Pictures); -#endif if (!m_pictureBmap->Ok()) { ::wxMessageBox(_T("Failed to load bitmap CardPictures"), _T("Error")); @@ -180,7 +170,7 @@ void Card::Draw(wxDC& dc, int x, int y) dc.SetBackground(* wxRED_BRUSH); dc.SetBackgroundMode(wxSOLID); wxBrush* brush = wxTheBrushList->FindOrCreateBrush( - _T("BLACK"), wxCROSSDIAG_HATCH + *wxBLACK, wxCROSSDIAG_HATCH ); dc.SetBrush(* brush);