X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..ed177375b27f8b80231a42638314c9809e6e945d:/contrib/samples/ogl/ogledit/view.cpp diff --git a/contrib/samples/ogl/ogledit/view.cpp b/contrib/samples/ogl/ogledit/view.cpp index dcf1ac3e09..c8661fc380 100644 --- a/contrib/samples/ogl/ogledit/view.cpp +++ b/contrib/samples/ogl/ogledit/view.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: view.cpp +// Name: contrib/samples/ogl/ogledit/view.cpp // Purpose: Implements view functionality in OGLEdit // Author: Julian Smart // Modified by: @@ -17,10 +17,10 @@ #endif #ifndef WX_PRECOMP -#include +#include "wx/wx.h" #endif -#include +#include "wx/colordlg.h" #if !wxUSE_DOC_VIEW_ARCHITECTURE #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h! @@ -118,7 +118,6 @@ void DiagramView::OnDraw(wxDC *dc) // This part was added to preform the print preview and printing functions - dc->BeginDrawing(); // Allows optimization of drawing code under MS Windows. wxDiagram *diagram_p=((DiagramDocument*)GetDocument())->GetDiagram(); // Get the current diagram if (diagram_p->GetShapeList()) { @@ -135,7 +134,6 @@ void DiagramView::OnDraw(wxDC *dc) current = current->GetNext(); // Procede to the next shape in the list } } - dc->EndDrawing(); // Allows optimization of drawing code under MS Windows. } void DiagramView::OnUpdate(wxView *WXUNUSED(sender), wxObject *WXUNUSED(hint))