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
3303ba7f
Commit
3303ba7f
authored
Nov 13, 2012
by
Putin Evgeny
Committed by
Alexandre Julliard
Nov 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Add orientation field to postscript header.
parent
a1797d88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ps.c
dlls/wineps.drv/ps.c
+6
-2
No files found.
dlls/wineps.drv/ps.c
View file @
3303ba7f
...
...
@@ -49,11 +49,12 @@ static const char *cups_duplexes[3] =
cups_two_sided_short
/* DMDUP_HORIZONTAL */
};
static
const
char
psheader
[]
=
/* title llx lly urx ury */
static
const
char
psheader
[]
=
/* title llx lly urx ury
orientation
*/
"%%%%Creator: Wine PostScript Driver
\n
"
"%%%%Title: %s
\n
"
"%%%%BoundingBox: %d %d %d %d
\n
"
"%%%%Pages: (atend)
\n
"
"%%%%Orientation: %s
\n
"
"%%%%EndComments
\n
"
;
static
const
char
psbeginprolog
[]
=
...
...
@@ -366,6 +367,8 @@ INT PSDRV_WriteHeader( PHYSDEV dev, LPCWSTR title )
DUPLEX
*
duplex
=
find_duplex
(
physDev
->
pi
->
ppd
,
physDev
->
Devmode
);
int
llx
,
lly
,
urx
,
ury
;
int
ret
,
len
;
const
char
*
dmOrientation
;
struct
ticket_info
ticket_info
=
{
page
,
duplex
};
TRACE
(
"%s
\n
"
,
debugstr_w
(
title
));
...
...
@@ -397,7 +400,8 @@ INT PSDRV_WriteHeader( PHYSDEV dev, LPCWSTR title )
ury
=
physDev
->
ImageableArea
.
top
*
72
.
0
/
physDev
->
logPixelsY
;
/* FIXME should do something better with BBox */
sprintf
(
buf
,
psheader
,
escaped_title
,
llx
,
lly
,
urx
,
ury
);
dmOrientation
=
(
physDev
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmOrientation
==
DMORIENT_LANDSCAPE
?
"Landscape"
:
"Portrait"
);
sprintf
(
buf
,
psheader
,
escaped_title
,
llx
,
lly
,
urx
,
ury
,
dmOrientation
);
HeapFree
(
GetProcessHeap
(),
0
,
escaped_title
);
...
...
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