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
537c9655
Commit
537c9655
authored
Apr 25, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Reset memory DC state on every page.
parent
9b98c90e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
printproc.c
dlls/wineps.drv/printproc.c
+15
-3
No files found.
dlls/wineps.drv/printproc.c
View file @
537c9655
...
...
@@ -3003,6 +3003,7 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable,
static
BOOL
print_metafile
(
struct
pp_data
*
data
,
HANDLE
hdata
)
{
XFORM
xform
=
{
.
eM11
=
1
,
.
eM22
=
1
};
record_hdr
header
;
HENHMETAFILE
hmf
;
BYTE
*
buf
;
...
...
@@ -3038,6 +3039,20 @@ static BOOL print_metafile(struct pp_data *data, HANDLE hdata)
if
(
!
hmf
)
return
FALSE
;
AbortPath
(
data
->
pdev
->
dev
.
hdc
);
SetBkColor
(
data
->
pdev
->
dev
.
hdc
,
RGB
(
255
,
255
,
255
));
SetBkMode
(
data
->
pdev
->
dev
.
hdc
,
OPAQUE
);
SetMapMode
(
data
->
pdev
->
dev
.
hdc
,
MM_TEXT
);
SetPolyFillMode
(
data
->
pdev
->
dev
.
hdc
,
ALTERNATE
);
SetROP2
(
data
->
pdev
->
dev
.
hdc
,
R2_COPYPEN
);
SetStretchBltMode
(
data
->
pdev
->
dev
.
hdc
,
BLACKONWHITE
);
SetTextAlign
(
data
->
pdev
->
dev
.
hdc
,
TA_LEFT
|
TA_TOP
);
SetTextColor
(
data
->
pdev
->
dev
.
hdc
,
0
);
SetTextJustification
(
data
->
pdev
->
dev
.
hdc
,
0
,
0
);
SetWorldTransform
(
data
->
pdev
->
dev
.
hdc
,
&
xform
);
PSDRV_SetTextColor
(
&
data
->
pdev
->
dev
,
0
);
PSDRV_SetBkColor
(
&
data
->
pdev
->
dev
,
RGB
(
255
,
255
,
255
));
ret
=
EnumEnhMetaFile
(
NULL
,
hmf
,
hmf_proc
,
(
void
*
)
data
,
NULL
);
DeleteEnhMetaFile
(
hmf
);
free
(
data
->
patterns
);
...
...
@@ -3133,9 +3148,6 @@ HANDLE WINAPI OpenPrintProcessor(WCHAR *port, PRINTPROCESSOROPENDATA *open_data)
data
->
pdev
->
dev
.
next
=
&
data
->
font_dev
;
data
->
font_dev
.
funcs
=
&
font_funcs
;
data
->
font_dev
.
hdc
=
hdc
;
PSDRV_SetTextColor
(
&
data
->
pdev
->
dev
,
GetTextColor
(
hdc
));
PSDRV_SetBkColor
(
&
data
->
pdev
->
dev
,
GetBkColor
(
hdc
));
return
(
HANDLE
)
data
;
}
...
...
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