From 498b94a6e0b67c07ab9269dffdc353dcd639826e Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 4 Nov 2004 19:13:31 +0000 Subject: [PATCH] Make temporary MSWUniv buildable and mark problem for the future (or for now if the print changes are supposed to be complete). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dcprint.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index fc748ce751..4de8e69a93 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -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 } // ---------------------------------------------------------------------------- -- 2.47.2