]> git.saurik.com Git - wxWidgets.git/commitdiff
Make temporary MSWUniv buildable and mark problem for the future (or for now if the...
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 4 Nov 2004 19:13:31 +0000 (19:13 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 4 Nov 2004 19:13:31 +0000 (19:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dcprint.cpp

index fc748ce7511990cabbdc692f8577ab4ada7fc90c..4de8e69a93c7253dc808f58ef61f5f674823c887 100644 (file)
@@ -283,9 +283,21 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
 // Gets an HDC for the specified printer configuration
 WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
 {
+#if defined(__WXUNIVERSAL__) && (!defined(__WXMSW__) || wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
+
+#if 0
+    wxPostScriptPrintNativeData *data =
+        (wxPostScriptPrintNativeData *) printDataConst.GetNativeData();
+    // FIXME: how further ???
+#else
+    return 0;
+#endif
+
+#else // Postscript vs. native Windows
+
     wxWindowsPrintNativeData *data =
         (wxWindowsPrintNativeData *) printDataConst.GetNativeData();
-        
+
     data->TransferFrom( printDataConst );
 
     wxChar* driverName = (wxChar*) NULL;
@@ -327,6 +339,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
         GlobalUnlock(hDevMode);
 
     return (WXHDC) hDC;
+#endif
 }
 
 // ----------------------------------------------------------------------------