Remove dead code. Factor out duplicated code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-05-17 20:14:07 +00:00
parent 719e7f81cc
commit 76208c7ef6
2 changed files with 37 additions and 143 deletions

View File

@@ -18,9 +18,9 @@
#include "wx/dc.h"
// -----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// fwd declarations
// -----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxWindowDC;
class WXDLLEXPORT wxWindow;
@@ -140,12 +140,18 @@ protected:
virtual void DoDrawPolygon(int n, wxPoint points[],
wxCoord xoffset, wxCoord yoffset,
int fillStyle = wxODDEVEN_RULE);
void DoGetSize( int *width, int *height ) const;
// common part of constructors
void Init();
WXGC m_gc;
WXGC m_gcBacking;
WXDisplay* m_display;
wxWindow* m_window;
WXRegion m_currentRegion; // Current clipping region (incl. paint clip region)
// Current clipping region (incl. paint clip region)
WXRegion m_currentRegion;
WXRegion m_userRegion; // User-defined clipping region
WXPixmap m_pixmap; // Pixmap for drawing on