X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97c985452b20a8c2f0bbfb1d0275298bf09fb45..fb8b9da2ba88ffcfa048d19ec07e39942a4326eb:/utils/ogl/src/divided.cpp diff --git a/utils/ogl/src/divided.cpp b/utils/ogl/src/divided.cpp index 9768075e72..ba8cd615ac 100644 --- a/utils/ogl/src/divided.cpp +++ b/utils/ogl/src/divided.cpp @@ -24,9 +24,7 @@ #include #endif -#ifdef PROLOGIO #include -#endif #include "basic.h" #include "basicp.h" @@ -83,7 +81,7 @@ void wxDividedShape::OnDrawContents(wxDC& dc) double leftX = (double)(m_xpos - (m_width / 2.0)); double rightX = (double)(m_xpos + (m_width / 2.0)); - if (m_pen) dc.SetPen(m_pen); + if (m_pen) dc.SetPen(* m_pen); if (m_textColour) dc.SetTextForeground(* m_textColour); @@ -110,7 +108,7 @@ void wxDividedShape::OnDrawContents(wxDC& dc) while (node) { wxShapeRegion *region = (wxShapeRegion *)node->Data(); - dc.SetFont(region->GetFont()); + dc.SetFont(* region->GetFont()); dc.SetTextForeground(* region->GetActualColourObject()); double proportion = @@ -130,7 +128,7 @@ void wxDividedShape::OnDrawContents(wxDC& dc) wxPen *regionPen = region->GetActualPen(); if (regionPen) { - dc.SetPen(regionPen); + dc.SetPen(* regionPen); dc.DrawLine(WXROUND(leftX), WXROUND(y), WXROUND(rightX), WXROUND(y)); } }