]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes after stock gdi changes within core library.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 18 Apr 2006 10:01:38 +0000 (10:01 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 18 Apr 2006 10:01:38 +0000 (10:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/samples/ogl/ogledit/doc.cpp

index 9759405727d1536601e2ec641ff8629abee53318..9d23abf698cc494be236263b89961baffda4d8ea 100644 (file)
@@ -233,8 +233,8 @@ bool DiagramCommand::Do(void)
         theShape->AssignNewIds();
         theShape->SetEventHandler(new MyEvtHandler(theShape, theShape, wxEmptyString));
         theShape->SetCentreResize(false);
-        theShape->SetPen(wxBLACK_PEN);
-        theShape->SetBrush(wxCYAN_BRUSH);
+        theShape->SetPen(*wxBLACK_PEN);
+        theShape->SetBrush(*wxCYAN_BRUSH);
 
         theShape->SetSize(60, 60);
       }
@@ -302,7 +302,7 @@ bool DiagramCommand::Do(void)
         wxClientDC dc(shape->GetCanvas());
         shape->GetCanvas()->PrepareDC(dc);
 
-        wxBrush *oldBrush = shape->GetBrush();
+        const wxBrush *oldBrush = shape->GetBrush();
         shape->SetBrush(shapeBrush);
         shapeBrush = oldBrush;
         shape->Draw(dc);
@@ -388,7 +388,7 @@ bool DiagramCommand::Undo(void)
         wxClientDC dc(shape->GetCanvas());
         shape->GetCanvas()->PrepareDC(dc);
 
-        wxBrush *oldBrush = shape->GetBrush();
+        const wxBrush *oldBrush = shape->GetBrush();
         shape->SetBrush(shapeBrush);
         shapeBrush = oldBrush;
         shape->Draw(dc);