From 3a8db46f44bfc76871753e99adcfc065852fe304 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 18 Apr 2006 10:01:38 +0000 Subject: [PATCH] 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 --- contrib/samples/ogl/ogledit/doc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.50.0