diff options
author | Günther Deschner <gd@samba.org> | 2009-08-10 11:25:52 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-08-10 11:32:26 +0200 |
commit | 8e5beb738c4fd1c195bf198883d747c9888cf8ba (patch) | |
tree | dd418934427b6fd41c010ded4b157ba9157ee0fa /source3/printing | |
parent | dc9b4cf001651a8e076eed1eb6e021a5149dc709 (diff) | |
download | samba-8e5beb738c4fd1c195bf198883d747c9888cf8ba.tar.gz samba-8e5beb738c4fd1c195bf198883d747c9888cf8ba.tar.bz2 samba-8e5beb738c4fd1c195bf198883d747c9888cf8ba.zip |
s3-spoolss: remove device mode defines from nt_printing.h.
Guenther
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index b2815c221d..b75e30bb3e 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2673,26 +2673,31 @@ NT_DEVICEMODE *construct_nt_devicemode(const fstring default_devicename) fstrcpy(nt_devmode->formname, "Letter"); - nt_devmode->specversion = 0x0401; + nt_devmode->specversion = DMSPEC_NT4_AND_ABOVE; nt_devmode->driverversion = 0x0400; nt_devmode->size = 0x00DC; nt_devmode->driverextra = 0x0000; - nt_devmode->fields = FORMNAME | TTOPTION | PRINTQUALITY | - DEFAULTSOURCE | COPIES | SCALE | - PAPERSIZE | ORIENTATION; - nt_devmode->orientation = 1; - nt_devmode->papersize = PAPER_LETTER; + nt_devmode->fields = DEVMODE_FORMNAME | + DEVMODE_TTOPTION | + DEVMODE_PRINTQUALITY | + DEVMODE_DEFAULTSOURCE | + DEVMODE_COPIES | + DEVMODE_SCALE | + DEVMODE_PAPERSIZE | + DEVMODE_ORIENTATION; + nt_devmode->orientation = DMORIENT_PORTRAIT; + nt_devmode->papersize = DMPAPER_LETTER; nt_devmode->paperlength = 0; nt_devmode->paperwidth = 0; nt_devmode->scale = 0x64; nt_devmode->copies = 1; - nt_devmode->defaultsource = BIN_FORMSOURCE; - nt_devmode->printquality = RES_HIGH; /* 0x0258 */ - nt_devmode->color = COLOR_MONOCHROME; - nt_devmode->duplex = DUP_SIMPLEX; + nt_devmode->defaultsource = DMBIN_FORMSOURCE; + nt_devmode->printquality = DMRES_HIGH; /* 0x0258 */ + nt_devmode->color = DMRES_MONOCHROME; + nt_devmode->duplex = DMDUP_SIMPLEX; nt_devmode->yresolution = 0; - nt_devmode->ttoption = TT_SUBDEV; - nt_devmode->collate = COLLATE_FALSE; + nt_devmode->ttoption = DMTT_SUBDEV; + nt_devmode->collate = DMCOLLATE_FALSE; nt_devmode->icmmethod = 0; nt_devmode->icmintent = 0; nt_devmode->mediatype = 0; |