Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
631caae7
Commit
631caae7
authored
Oct 21, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Oct 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Let CUPS control the copy count rather than embedding it in the PostScript.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
18dc14ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ps.c
dlls/wineps.drv/ps.c
+9
-6
No files found.
dlls/wineps.drv/ps.c
View file @
631caae7
...
...
@@ -331,6 +331,7 @@ struct ticket_info
static
void
write_cups_job_ticket
(
PHYSDEV
dev
,
const
struct
ticket_info
*
info
)
{
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
char
buf
[
256
];
int
len
;
...
...
@@ -356,6 +357,14 @@ static void write_cups_job_ticket( PHYSDEV dev, const struct ticket_info *info )
write_spool
(
dev
,
str
,
strlen
(
str
)
);
}
}
if
(
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmCopies
>
1
)
{
len
=
snprintf
(
buf
,
sizeof
(
buf
),
"%%cupsJobTicket: copies=%d
\n
"
,
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmCopies
);
if
(
len
>
0
&&
len
<
sizeof
(
buf
))
write_spool
(
dev
,
buf
,
len
);
}
}
INT
PSDRV_WriteHeader
(
PHYSDEV
dev
,
LPCWSTR
title
)
...
...
@@ -414,12 +423,6 @@ INT PSDRV_WriteHeader( PHYSDEV dev, LPCWSTR title )
write_spool
(
dev
,
psendprolog
,
strlen
(
psendprolog
)
);
write_spool
(
dev
,
psbeginsetup
,
strlen
(
psbeginsetup
)
);
if
(
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmCopies
>
1
)
{
char
copies_buf
[
100
];
sprintf
(
copies_buf
,
"mark {
\n
<< /NumCopies %d >> setpagedevice
\n
} stopped cleartomark
\n
"
,
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmCopies
);
write_spool
(
dev
,
copies_buf
,
strlen
(
copies_buf
));
}
if
(
slot
&&
slot
->
InvocationString
)
PSDRV_WriteFeature
(
dev
,
"*InputSlot"
,
slot
->
Name
,
slot
->
InvocationString
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment