wineps.drv: Return default resolution if PPD doesn't provide the list of supported resolutions.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
parent
f42316c86d
commit
e42afe7daf
1 changed files with 9 additions and 0 deletions
|
@ -703,6 +703,15 @@ DWORD WINAPI DrvDeviceCapabilities(HANDLE printer, WCHAR *device_name, WORD capa
|
|||
lp += 2;
|
||||
}
|
||||
}
|
||||
if (!i)
|
||||
{
|
||||
if (output != NULL)
|
||||
{
|
||||
lp[0] = pi->ppd->DefaultResolution;
|
||||
lp[1] = pi->ppd->DefaultResolution;
|
||||
}
|
||||
i = 1;
|
||||
}
|
||||
ret = i;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue