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
2546468b
Commit
2546468b
authored
Mar 27, 2024
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Implicitly call StartPage in ExtEscape on printer DC.
parent
dd68561c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
dc.c
dlls/gdi32/dc.c
+17
-2
No files found.
dlls/gdi32/dc.c
View file @
2546468b
...
@@ -743,17 +743,32 @@ INT WINAPI Escape( HDC hdc, INT escape, INT in_count, const char *in_data, void
...
@@ -743,17 +743,32 @@ INT WINAPI Escape( HDC hdc, INT escape, INT in_count, const char *in_data, void
INT
WINAPI
ExtEscape
(
HDC
hdc
,
INT
escape
,
INT
input_size
,
const
char
*
input
,
INT
WINAPI
ExtEscape
(
HDC
hdc
,
INT
escape
,
INT
input_size
,
const
char
*
input
,
INT
output_size
,
char
*
output
)
INT
output_size
,
char
*
output
)
{
{
struct
print
*
print
;
DC_ATTR
*
dc_attr
;
DC_ATTR
*
dc_attr
;
if
(
is_meta_dc
(
hdc
))
if
(
is_meta_dc
(
hdc
))
return
METADC_ExtEscape
(
hdc
,
escape
,
input_size
,
input
,
output_size
,
output
);
return
METADC_ExtEscape
(
hdc
,
escape
,
input_size
,
input
,
output_size
,
output
);
if
(
!
(
dc_attr
=
get_dc_attr
(
hdc
)))
return
0
;
if
(
!
(
dc_attr
=
get_dc_attr
(
hdc
)))
return
0
;
if
((
print
=
get_dc_print
(
dc_attr
))
&&
dc_attr
->
emf
)
if
(
dc_attr
->
print
)
{
switch
(
escape
)
{
case
PASSTHROUGH
:
case
POSTSCRIPT_DATA
:
case
GETFACENAME
:
case
DOWNLOADFACE
:
case
BEGIN_PATH
:
case
CLIP_TO_PATH
:
case
END_PATH
:
case
DOWNLOADHEADER
:
print_call_start_page
(
dc_attr
);
}
if
(
dc_attr
->
emf
)
{
{
int
ret
=
EMFDC_ExtEscape
(
dc_attr
,
escape
,
input_size
,
input
,
output_size
,
output
);
int
ret
=
EMFDC_ExtEscape
(
dc_attr
,
escape
,
input_size
,
input
,
output_size
,
output
);
if
(
ret
)
return
ret
;
if
(
ret
)
return
ret
;
}
}
}
return
NtGdiExtEscape
(
hdc
,
NULL
,
0
,
escape
,
input_size
,
input
,
output_size
,
output
);
return
NtGdiExtEscape
(
hdc
,
NULL
,
0
,
escape
,
input_size
,
input
,
output_size
,
output
);
}
}
...
...
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