X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bce6687f47dfa5fb8d4bab92702a5b5b1eb3485..5e3841bf8069fbcc2b1da3ef36af4f569c604265:/src/msw/enhmeta.cpp diff --git a/src/msw/enhmeta.cpp b/src/msw/enhmeta.cpp index b931e44bdf..6061f3deda 100644 --- a/src/msw/enhmeta.cpp +++ b/src/msw/enhmeta.cpp @@ -193,14 +193,7 @@ wxEnhMetaFileDC::wxEnhMetaFileDC(const wxString& filename, rect.bottom = height; // CreateEnhMetaFile() wants them in HIMETRIC -#ifdef __WXWINE__ - LONG r, b; - PixelToHIMETRIC(&r, &b); - rect.right = r; - rect.bottom = b; -#else PixelToHIMETRIC(&rect.right, &rect.bottom); -#endif pRect = ▭ } @@ -301,10 +294,6 @@ bool wxEnhMetaFileDataObject::GetDataHere(const wxDataFormat& format, void *buf) } else { -#ifdef __WXWINE__ - wxFAIL_MSG( _T("unsupported format") ); - return FALSE; -#else wxASSERT_MSG( format == wxDF_METAFILE, _T("unsupported format") ); // convert to WMF @@ -346,7 +335,6 @@ bool wxEnhMetaFileDataObject::GetDataHere(const wxDataFormat& format, void *buf) mfpict->yExt = sizeMF.y; PixelToHIMETRIC(&mfpict->xExt, &mfpict->yExt); -#endif } return TRUE;