#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/dc.h"
+ #include "wx/settings.h"
+ #include "wx/gdicmn.h"
+ #include "wx/module.h"
#endif //WX_PRECOMP
-#include "wx/gdicmn.h"
-
-#include "wx/settings.h"
#include "wx/splitter.h"
#include "wx/dcmirror.h"
-#include "wx/module.h"
// ----------------------------------------------------------------------------
// wxRendererGeneric: our wxRendererNative implementation
int flags)
{
// store settings
- wxPen pen(dc.GetPen());
- wxBrush brush(dc.GetBrush());
+ wxDCPenChanger penChanger(dc, *wxGREY_PEN);
+ wxDCBrushChanger brushChanger(dc, *wxWHITE_BRUSH);
- // white background
- dc.SetPen(*wxGREY_PEN);
- dc.SetBrush(*wxWHITE_BRUSH);
dc.DrawRectangle(rect);
// black lines
dc.DrawLine(xMiddle, yMiddle - halfHeight,
xMiddle, yMiddle + halfHeight + 1);
}
-
- dc.SetPen(pen);
- dc.SetBrush(brush);
}
// ----------------------------------------------------------------------------