X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..bcd3d8d9e26e41615d26d457ba0e2b84b80a0356:/src/mgl/dcscreen.cpp diff --git a/src/mgl/dcscreen.cpp b/src/mgl/dcscreen.cpp index db34c4a945..6152e58c54 100644 --- a/src/mgl/dcscreen.cpp +++ b/src/mgl/dcscreen.cpp @@ -1,9 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // Name: dcscreen.cpp -// Purpose: -// Author: Robert Roebling +// Author: Vaclav Slavik // Id: $Id$ -// Copyright: (c) 1998 Robert Roebling +// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -11,8 +10,19 @@ #pragma implementation "dcscreen.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + #include "wx/dcscreen.h" -#include "wx/window.h" +#include "wx/mgl/private.h" +IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC) -IMPLEMENT_DYNAMIC_CLASS(wxScreenDC,wxPaintDC) +wxScreenDC::wxScreenDC() : wxDC() +{ + SetMGLDC(g_displayDC, FALSE /* no ownership */); +}