// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dcprint.h"
#endif
int ret = ::StartDoc(GetHdc(), &docinfo);
-#ifndef __WIN16__
if (ret <= 0)
{
DWORD lastError = GetLastError();
wxLogDebug(wxT("wxDC::StartDoc failed with error: %ld\n"), lastError);
}
-#endif
return (ret > 0);
}
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;
{
// Retrieve the default device name
wxString portName;
-#ifdef __WXDEBUG__
- bool ret =
-#else // !Debug
- (void)
-#endif // Debug/Release
- wxGetDefaultDeviceName(devNameStr, portName);
-
- wxASSERT_MSG( ret, wxT("Could not get default device name.") );
-
+ if ( !wxGetDefaultDeviceName(devNameStr, portName) )
+ {
+ return 0; // Could not get default device name
+ }
deviceName = devNameStr.c_str();
}
{
#if wxUSE_WXDIB
wxDIB dib(bmp);
- if ( !dib.IsOk() )
+ bool ok = dib.IsOk();
+ if ( !ok )
return FALSE;
DIBSECTION ds;
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))
{