mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Introduced a [psdrv] section in wine.conf with a ppdfile value
specifying the path and name of the PPD file.
This commit is contained in:
parent
59fb130369
commit
4884396548
@ -43,8 +43,13 @@ You also require a PPD file for your printer. This describes certain
|
||||
characteristics of the printer such as which fonts are installed, how to select
|
||||
manual feed etc. Adobe also has many of these on its website, have a look in
|
||||
ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/all/
|
||||
Put the PPD in the directory from which you start wine and call it default.ppd
|
||||
[this will definitely change soon].
|
||||
Create a [psdrv] section in your wine.conf (or ~/.winerc) and add the
|
||||
following entry:
|
||||
|
||||
ppdfile=/somewhere/file.ppd
|
||||
|
||||
By default, the driver will look for a file named default.ppd in the directory
|
||||
from which you started wine.
|
||||
|
||||
To enable colour printing you need to have the *ColorDevice entry in the PPD
|
||||
set to true, otherwise the driver will generate greyscale.
|
||||
|
@ -362,6 +362,8 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
|
||||
(LPBYTE)pi->Devmode, needed, &needed);
|
||||
}
|
||||
|
||||
PROFILE_GetWineIniString("psdrv", "ppdfile", "default.ppd",
|
||||
pi->Devmode->dmDrvPrivate.ppdFileName, 256);
|
||||
pi->ppd = PSDRV_ParsePPD(pi->Devmode->dmDrvPrivate.ppdFileName);
|
||||
if(!pi->ppd) {
|
||||
HeapFree(PSDRV_Heap, 0, pi->FriendlyName);
|
||||
|
@ -148,7 +148,7 @@ typedef struct {
|
||||
int dummy;
|
||||
} dmDocPrivate;
|
||||
struct _tagdrvprivate {
|
||||
char ppdFileName[100]; /* Hack */
|
||||
char ppdFileName[256]; /* Hack */
|
||||
UINT numInstalledOptions; /* Options at end of struct */
|
||||
} dmDrvPrivate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user