From: Włodzimierz Skiba Date: Tue, 18 Apr 2006 10:01:38 +0000 (+0000) Subject: Fixes after stock gdi changes within core library. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3a8db46f44bfc76871753e99adcfc065852fe304?ds=inline Fixes after stock gdi changes within core library. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/samples/ogl/ogledit/doc.cpp b/contrib/samples/ogl/ogledit/doc.cpp index 9759405727..9d23abf698 100644 --- a/contrib/samples/ogl/ogledit/doc.cpp +++ b/contrib/samples/ogl/ogledit/doc.cpp @@ -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);