Restore wxDC attributes after drawing with renderer

This commit is contained in:
Maarten Bent
2021-06-28 23:19:15 +02:00
parent 6831a91b7d
commit d1ab1b218e
3 changed files with 38 additions and 38 deletions

View File

@@ -68,6 +68,7 @@ public:
{
wxDCBrushChanger setBrush(dc, *wxBLUE_BRUSH);
wxDCTextColourChanger setFgCol(dc, *wxWHITE);
wxDCTextBgModeChanger setBgMode(dc, wxBRUSHSTYLE_TRANSPARENT);
dc.DrawRoundedRectangle(rect, 5);
wxString label;