X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cecdcad1db85bec15c83bc80543742fb32dacb27..ff3e84ffdc91ee8a52b3ab646e48d44d62de80e1:/contrib/samples/ogl/ogledit/view.cpp diff --git a/contrib/samples/ogl/ogledit/view.cpp b/contrib/samples/ogl/ogledit/view.cpp index a23020a93d..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: @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -21,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! @@ -122,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()) { @@ -139,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))