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
86b686fb
Commit
86b686fb
authored
Jun 05, 1999
by
Noel Borthwick
Committed by
Alexandre Julliard
Jun 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
From CreateCompatibleDC, pass the device name associated with the
source DC in order to allow PSDRV_CreateDC to locate the printer info for the device.
parent
28b3ee73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
init.c
graphics/psdrv/init.c
+11
-1
dc.c
objects/dc.c
+6
-0
No files found.
graphics/psdrv/init.c
View file @
86b686fb
...
...
@@ -216,9 +216,19 @@ static BOOL PSDRV_CreateDC( DC *dc, LPCSTR driver, LPCSTR device,
LPCSTR
output
,
const
DEVMODEA
*
initData
)
{
PSDRV_PDEVICE
*
physDev
;
PRINTERINFO
*
pi
=
PSDRV_FindPrinterInfo
(
device
)
;
PRINTERINFO
*
pi
;
DeviceCaps
*
devCaps
;
/* If no device name was specified, retrieve the device name
* from the DEVMODE structure from the DC's physDev.
* (See CreateCompatibleDC) */
if
(
!
device
&&
dc
->
physDev
)
{
physDev
=
(
PSDRV_PDEVICE
*
)
dc
->
physDev
;
device
=
physDev
->
Devmode
->
dmPublic
.
dmDeviceName
;
}
pi
=
PSDRV_FindPrinterInfo
(
device
);
TRACE
(
psdrv
,
"(%s %s %s %p)
\n
"
,
driver
,
device
,
output
,
initData
);
if
(
!
pi
)
return
FALSE
;
...
...
objects/dc.c
View file @
86b686fb
...
...
@@ -634,6 +634,12 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
dc
->
w
.
hBitmap
=
hbitmap
;
dc
->
w
.
hFirstBitmap
=
hbitmap
;
/* Copy the driver-specific physical device info into
* the new DC. The driver may use this read-only info
* while creating the compatible DC below. */
if
(
origDC
)
dc
->
physDev
=
origDC
->
physDev
;
if
(
dc
->
funcs
->
pCreateDC
&&
!
dc
->
funcs
->
pCreateDC
(
dc
,
NULL
,
NULL
,
NULL
,
NULL
))
{
...
...
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