wineps: Move the default resolution fallback to the ppd parser.

This commit is contained in:
Huw Davies 2012-04-12 13:03:13 +01:00 committed by Alexandre Julliard
parent 92bce60f37
commit 1d2cd06592
2 changed files with 4 additions and 5 deletions

View File

@ -707,11 +707,6 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCWSTR name)
goto fail;
}
/* Some gimp-print ppd files don't contain a DefaultResolution line
set it to 300 if it's not specified */
if(pi->ppd->DefaultResolution == 0)
pi->ppd->DefaultResolution = 300;
if(using_default_devmode) {
DWORD papersize;

View File

@ -634,6 +634,10 @@ PPD *PSDRV_ParsePPD(char *fname)
list_init( &ppd->InputSlots );
list_init( &ppd->Duplexes );
/* Some gimp-print ppd files don't contain a DefaultResolution line
so default to 300 */
ppd->DefaultResolution = 300;
/*
* The Windows PostScript drivers create the following "virtual bin" for
* every PostScript printer