use consistent names (Graphic vs. Graphics)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -325,8 +325,8 @@ public:
|
||||
|
||||
virtual void ComputeScaleAndOrigin();
|
||||
|
||||
wxGraphicsContext* GetGraphicContext() { return m_graphicContext; }
|
||||
virtual void SetGraphicsContext( wxGraphicsContext* ctx )
|
||||
wxGraphicsContext* GetGraphicsContext() { return m_graphicContext; }
|
||||
virtual void SetGraphicsContext( wxGraphicsContext* ctx )
|
||||
{ delete m_graphicContext; m_graphicContext = ctx; }
|
||||
protected:
|
||||
// the true implementations
|
||||
|
@@ -312,7 +312,7 @@ void wxDefaultDockArt::DrawSash(wxDC& dc, wxWindow *window, int orientation, con
|
||||
HIRect splitterRect = CGRectMake( rect.x , rect.y , rect.width , rect.height );
|
||||
CGContextRef cgContext ;
|
||||
#if wxMAC_USE_CORE_GRAPHICS
|
||||
cgContext = (CGContextRef) dc.GetGraphicContext()->GetNativeContext() ;
|
||||
cgContext = (CGContextRef) dc.GetGraphicsContext()->GetNativeContext() ;
|
||||
#else
|
||||
Rect bounds ;
|
||||
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
|
||||
|
@@ -166,7 +166,7 @@ bool wxMetaFile::Play(wxDC *dc)
|
||||
#if wxMAC_USE_CORE_GRAPHICS
|
||||
#ifndef __LP64__
|
||||
QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef;
|
||||
CGContextRef cg = (CGContextRef) dc->GetGraphicContext()->GetNativeContext();
|
||||
CGContextRef cg = (CGContextRef) dc->GetGraphicsContext()->GetNativeContext();
|
||||
CGRect bounds = QDPictGetBounds( cgPictRef );
|
||||
|
||||
CGContextSaveGState( cg );
|
||||
|
@@ -160,7 +160,7 @@ void wxRendererMac::DrawHeaderButton( wxWindow *win,
|
||||
CGContextRef cgContext;
|
||||
|
||||
#if wxMAC_USE_CORE_GRAPHICS
|
||||
cgContext = (CGContextRef) dc.GetGraphicContext()->GetNativeContext();
|
||||
cgContext = (CGContextRef) dc.GetGraphicsContext()->GetNativeContext();
|
||||
#else
|
||||
Rect bounds;
|
||||
|
||||
@@ -329,7 +329,7 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
|
||||
CGContextRef cgContext;
|
||||
|
||||
#if wxMAC_USE_CORE_GRAPHICS
|
||||
cgContext = (CGContextRef) dc.GetGraphicContext()->GetNativeContext();
|
||||
cgContext = (CGContextRef) dc.GetGraphicsContext()->GetNativeContext();
|
||||
#else
|
||||
Rect bounds;
|
||||
GetPortBounds( (CGrafPtr) dc.m_macPort, &bounds );
|
||||
|
Reference in New Issue
Block a user