X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd64de596c085f81aa3ef7d8ee6b2f4afebbed8e..9386cb75e34acb49cd9fac945e09cf002f22db2d:/src/msw/dcprint.cpp 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 } // ----------------------------------------------------------------------------