// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dcprint.h"
#endif
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/msw/private.h"
+
+#if wxUSE_WXDIB
#include "wx/msw/dib.h"
+#endif
+
#include "wx/dcprint.h"
#include "math.h"
deviceName.clear();
LPDEVNAMES lpDevNames;
- LPTSTR lpszDriverName;
LPTSTR lpszDeviceName;
LPTSTR lpszPortName;
if (pd.hDevNames)
{
lpDevNames = (LPDEVNAMES)GlobalLock(pd.hDevNames);
- lpszDriverName = (LPTSTR)lpDevNames + lpDevNames->wDriverOffset;
lpszDeviceName = (LPTSTR)lpDevNames + lpDevNames->wDeviceOffset;
lpszPortName = (LPTSTR)lpDevNames + lpDevNames->wOutputOffset;
GlobalFree(pd.hDevMode);
pd.hDevMode=NULL;
}
- return ( deviceName != wxT("") );
+ return ( deviceName != wxEmptyString );
}
// Gets an HDC for the specified printer configuration
const wxBitmap& bmp,
wxCoord x, wxCoord y)
{
+#if wxUSE_WXDIB
wxDIB dib(bmp);
if ( !dib.IsOk() )
return FALSE;
}
return TRUE;
+#else
+ return FALSE;
+#endif
}
void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
wxCoord width, wxCoord height,
wxDC *source,
- wxCoord xsrc, wxCoord ysrc,
+ wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
int WXUNUSED(rop), bool useMask,
wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
{
else // no mask
{
if ( !(::GetDeviceCaps(GetHdc(), RASTERCAPS) & RC_STRETCHDIB) ||
- !DrawBitmapUsingStretchDIBits(GetHdc(), bmp, xsrc, ysrc) )
+ !DrawBitmapUsingStretchDIBits(GetHdc(), bmp, xdest, ydest) )
{
// no support for StretchDIBits