X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff7b1510ea7f7855091df83d75a44415dc1cba18..c19a8a9a7187281b757808e651358198352b8f11:/src/gtk1/dc.cpp diff --git a/src/gtk1/dc.cpp b/src/gtk1/dc.cpp index ff6f369904..d782330da8 100644 --- a/src/gtk1/dc.cpp +++ b/src/gtk1/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 ///////////////////////////////////////////////////////////////////////////// @@ -83,12 +82,14 @@ wxDC::~wxDC(void) { } -void wxDC::DrawArc( long WXUNUSED(x1), long WXUNUSED(y1), long WXUNUSED(x2), long WXUNUSED(y2), - double WXUNUSED(xc), double WXUNUSED(yc) ) -{ +bool wxDC::Ok(void) const +{ + wxASSERT_MSG( m_ok, "invalid display context" ); + return m_ok; } -void wxDC::DrawIcon( const wxIcon &WXUNUSED(icon), long WXUNUSED(x), long WXUNUSED(y), bool WXUNUSED(useMask) ) +void wxDC::DrawArc( long WXUNUSED(x1), long WXUNUSED(y1), long WXUNUSED(x2), long WXUNUSED(y2), + double WXUNUSED(xc), double WXUNUSED(yc) ) { } @@ -145,11 +146,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; @@ -362,10 +358,15 @@ 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!! + // It even gives an Assert, Robert Roebling +/* wxPen* pen = GetPen(); wxPen tempPen; m_pen = tempPen; SetPen(pen); +*/ } }