wxPrintout * WXUNUSED(printoutForPrinting),
wxPrintData *data)
{
- DetermineScaling();
-
// convert wxPrintQuality to resolution (input pointer can be NULL)
wxPrintQuality quality = data ? data->GetQuality() : wxPRINT_QUALITY_MEDIUM;
switch ( quality )
m_resolution = 1200;
break;
+ case wxPRINT_QUALITY_LOW:
+ m_resolution = 300;
+ break;
+
+ case wxPRINT_QUALITY_DRAFT:
+ m_resolution = 150;
+ break;
+
default:
+ if ( quality > 0 )
+ {
+ // positive values directly indicate print resolution
+ m_resolution = quality;
+ break;
+ }
+
wxFAIL_MSG( "unknown print quality" );
// fall through
m_resolution = 600;
break;
- case wxPRINT_QUALITY_LOW:
- m_resolution = 300;
- break;
-
- case wxPRINT_QUALITY_DRAFT:
- m_resolution = 150;
- break;
}
+
+ DetermineScaling();
}
wxGtkPrintPreview::wxGtkPrintPreview(wxPrintout *printout,