Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a3c83259
Commit
a3c83259
authored
Jan 14, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Default page dimensions are part of DEVMODE, remove an old hack.
parent
ea57e29d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
init.c
dlls/wineps.drv/init.c
+0
-17
No files found.
dlls/wineps.drv/init.c
View file @
a3c83259
...
...
@@ -612,7 +612,6 @@ static struct list printer_list = LIST_INIT( printer_list );
*/
PRINTERINFO
*
PSDRV_FindPrinterInfo
(
LPCWSTR
name
)
{
DWORD
needed
,
res
,
dwPaperSize
;
PRINTERINFO
*
pi
;
FONTNAME
*
font
;
const
AFM
*
afm
;
...
...
@@ -678,22 +677,6 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCWSTR name)
PSDRV_MergeDevmodes
(
pi
->
Devmode
,
&
dm
,
pi
);
}
/*
* This is a hack. The default paper size should be read in as part of
* the Devmode structure, but Wine doesn't currently provide a convenient
* way to configure printers.
*/
res
=
GetPrinterDataExA
(
hPrinter
,
"PrinterDriverData"
,
"Paper Size"
,
NULL
,
(
LPBYTE
)
&
dwPaperSize
,
sizeof
(
DWORD
),
&
needed
);
if
(
res
==
ERROR_SUCCESS
)
pi
->
Devmode
->
dmPublic
.
u1
.
s1
.
dmPaperSize
=
(
SHORT
)
dwPaperSize
;
else
if
(
res
==
ERROR_FILE_NOT_FOUND
)
TRACE
(
"No 'Paper Size' for printer '%s'
\n
"
,
debugstr_w
(
name
));
else
{
ERR
(
"GetPrinterDataA returned %i
\n
"
,
res
);
goto
fail
;
}
/* Duplex is indicated by the setting of the DM_DUPLEX bit in dmFields.
WinDuplex == 0 is a special case which means that the ppd has a
*DefaultDuplex: NotCapable entry. In this case we'll try not to confuse
...
...
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