Use wxWindowDC instead of wxClientDC as function parameters since we cannot assume that wxPaintDC inherits from wxClientDC

This commit is contained in:
kintel 2007-10-28 17:53:09 +00:00
parent c3a7b4d126
commit 8863c003e4
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ void WinEDA_MsgPanel::Affiche_1_Parametre( int pos_X, const wxString& texte_H,
} }
void WinEDA_MsgPanel::showItem( wxClientDC& dc, const MsgItem& aItem ) void WinEDA_MsgPanel::showItem( wxWindowDC& dc, const MsgItem& aItem )
{ {
int color = aItem.m_Color; int color = aItem.m_Color;

View File

@ -1409,7 +1409,7 @@ class WinEDA_MsgPanel : public wxPanel
protected: protected:
std::vector<MsgItem> m_Items; std::vector<MsgItem> m_Items;
void showItem( wxClientDC& dc, const MsgItem& aItem ); void showItem( wxWindowDC& dc, const MsgItem& aItem );
public: public:
WinEDA_DrawFrame* m_Parent; WinEDA_DrawFrame* m_Parent;