X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf7a7e133be36522ec3afd0417f1d2bd860b4f6c..0133ee9316eb1a446970fd00c1b8ce2fece595e5:/src/gtk/dc.cpp diff --git a/src/gtk/dc.cpp b/src/gtk/dc.cpp index a7c77998bc..6c939ef83c 100644 --- a/src/gtk/dc.cpp +++ b/src/gtk/dc.cpp @@ -2,9 +2,8 @@ // Name: dc.cpp // Purpose: // Author: Robert Roebling -// Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem +// Copyright: (c) 1998 Robert Roebling, Markus Holzem // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -85,7 +84,7 @@ wxDC::~wxDC(void) bool wxDC::Ok(void) const { - wxASSERT_MSG( !ok, "invalid display context" ); + wxASSERT_MSG( m_ok, "invalid display context" ); return m_ok; } @@ -151,11 +150,6 @@ void wxDC::DrawSpline( long x1, long y1, long x2, long y2, long x3, long y3 ) } } -void wxDC::DrawSpline( wxList *points ) -{ - DrawOpenSpline( points ); -} - void wxDC::DrawSpline( int n, wxPoint points[] ) { wxList list; @@ -368,6 +362,8 @@ void wxDC::ComputeScaleAndOrigin(void) { // this is a bit artificial, but we need to force wxDC to think // the pen has changed + // Using this code, wxDC will ignore the new settings + // so it's complete non-sense, Robert Roebling TODO!! wxPen* pen = GetPen(); wxPen tempPen; m_pen = tempPen;