diff --git a/include/wx/dfb/dcclient.h b/include/wx/dfb/dcclient.h index 9916742c74..17ae7ed988 100644 --- a/include/wx/dfb/dcclient.h +++ b/include/wx/dfb/dcclient.h @@ -26,15 +26,12 @@ public: wxWindowDCImpl(wxDC *owner, wxWindow *win); virtual ~wxWindowDCImpl(); - virtual wxWindow *GetWindow() const { return m_win; } - protected: // initializes the DC for painting on given window; if rect!=NULL, then // for painting only on the given region of the window void InitForWin(wxWindow *win, const wxRect *rect); private: - wxWindow *m_win; wxRect m_winRect; // rectangle of the window being painted bool m_shouldFlip; // flip the surface when done? diff --git a/src/dfb/dcclient.cpp b/src/dfb/dcclient.cpp index 47add960f3..2a13ea7e2b 100644 --- a/src/dfb/dcclient.cpp +++ b/src/dfb/dcclient.cpp @@ -107,7 +107,7 @@ void wxWindowDCImpl::InitForWin(wxWindow *win, const wxRect *rect) { wxCHECK_RET( win, "invalid window" ); - m_win = win; + m_window = win; // obtain the surface used for painting: wxPoint origin; @@ -211,7 +211,7 @@ wxWindowDCImpl::~wxWindowDCImpl() { // paint overlays on top of the surface being drawn to by this DC // before showing anything on the screen: - m_win->PaintOverlays(m_winRect); + GetWindow()->PaintOverlays(m_winRect); DFBSurfaceCapabilities caps = DSCAPS_NONE; surface->GetCapabilities(&caps);