]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/dcscreen.cpp
initial (not yet working) code for DirectFB port
[wxWidgets.git] / src / dfb / dcscreen.cpp
diff --git a/src/dfb/dcscreen.cpp b/src/dfb/dcscreen.cpp
new file mode 100644 (file)
index 0000000..f1218a9
--- /dev/null
@@ -0,0 +1,44 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        src/dfb/dcscreen.cpp
+// Purpose:     wxScreenDC implementation
+// Author:      Vaclav Slavik
+// Created:     2006-08-16
+// RCS-ID:      $Id$
+// Copyright:   (c) 2006 REA Elektronik GmbH
+// Licence:     wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+// ===========================================================================
+// declarations
+// ===========================================================================
+
+// ---------------------------------------------------------------------------
+// headers
+// ---------------------------------------------------------------------------
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#include "wx/dcscreen.h"
+
+#include "wx/dfb/private.h"
+
+// ===========================================================================
+// implementation
+// ===========================================================================
+
+//-----------------------------------------------------------------------------
+// wxScreenDC
+//-----------------------------------------------------------------------------
+
+#warning "FIXME: verify that wxScreenDC works in 2nd DirectFB app started"
+// FIXME: maybe use a subsurface as well?
+
+IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxDC)
+
+wxScreenDC::wxScreenDC()
+{
+    Init(wxDfbGetPrimarySurface());
+}
+
+#warning "FIXME: does wxScreenDC need Flip call in dtor?"