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
43cffa08
Commit
43cffa08
authored
Apr 11, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Apr 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Set the printer's devmode using SetPrinter.
parent
a7f42d32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
init.c
dlls/wineps.drv/init.c
+9
-3
No files found.
dlls/wineps.drv/init.c
View file @
43cffa08
...
...
@@ -113,7 +113,6 @@ static const LOGFONTA DefaultLogFont = {
DEFAULT_QUALITY
,
FIXED_PITCH
|
FF_MODERN
,
""
};
static
const
CHAR
default_devmodeA
[]
=
"Default DevMode"
;
static
const
struct
gdi_dc_funcs
psdrv_funcs
;
/*********************************************************************
...
...
@@ -610,6 +609,14 @@ static PSDRV_DEVMODEA *get_devmode( HANDLE printer, const char *nameA, BOOL *is_
return
dm
;
}
static
BOOL
set_devmode
(
HANDLE
printer
,
PSDRV_DEVMODEA
*
dm
)
{
PRINTER_INFO_9A
info
;
info
.
pDevMode
=
&
dm
->
dmPublic
;
return
SetPrinterA
(
printer
,
9
,
(
BYTE
*
)
&
info
,
0
);
}
static
struct
list
printer_list
=
LIST_INIT
(
printer_list
);
/**********************************************************************
...
...
@@ -761,8 +768,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCWSTR name)
PSDRV_MergeDevmodes
(
pi
->
Devmode
,
&
dm
,
pi
);
}
SetPrinterDataExA
(
hPrinter
,
NULL
,
default_devmodeA
,
REG_BINARY
,
(
LPBYTE
)
pi
->
Devmode
,
sizeof
(
DefaultDevmode
));
set_devmode
(
hPrinter
,
pi
->
Devmode
);
}
if
(
pi
->
ppd
->
DefaultPageSize
)
{
/* We'll let the ppd override the devmode */
...
...
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