+
+wxPen wxShape::GetBackgroundPen()
+{
+ if (GetCanvas())
+ {
+ wxColour c = GetCanvas()->GetBackgroundColour();
+ return wxPen(c, 1, wxSOLID);
+ }
+ return * g_oglWhiteBackgroundPen;
+}
+
+
+wxBrush wxShape::GetBackgroundBrush()
+{
+ if (GetCanvas())
+ {
+ wxColour c = GetCanvas()->GetBackgroundColour();
+ return wxBrush(c, wxSOLID);
+ }
+ return * g_oglWhiteBackgroundBrush;
+}
+