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 = ▭
}
else
}
else
{
+#ifdef __WXWINE__
+ wxFAIL_MSG( _T("unsupported format") );
+ return FALSE;
+#else
wxASSERT_MSG( format == wxDF_METAFILE, _T("unsupported format") );
// convert to WMF
mfpict->yExt = sizeMF.y;
PixelToHIMETRIC(&mfpict->xExt, &mfpict->yExt);
+#endif
}
return TRUE;