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
9adaca0f
Commit
9adaca0f
authored
May 04, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
May 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Handle NEXTBAND escape in Escape().
parent
cd4f48f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
dc.c
dlls/gdi32/dc.c
+19
-0
No files found.
dlls/gdi32/dc.c
View file @
9adaca0f
...
...
@@ -56,6 +56,7 @@ enum print_flags
CALL_START_PAGE
=
0x1
,
CALL_END_PAGE
=
0x2
,
WRITE_DEVMODE
=
0x4
,
BANDING
=
0x8
,
};
struct
print
...
...
@@ -560,6 +561,24 @@ INT WINAPI Escape( HDC hdc, INT escape, INT in_count, const char *in_data, void
case
ABORTDOC
:
return
AbortDoc
(
hdc
);
case
NEXTBAND
:
{
RECT
*
rect
=
out_data
;
struct
print
*
print
;
DC_ATTR
*
dc_attr
;
if
(
!
(
dc_attr
=
get_dc_attr
(
hdc
))
||
!
(
print
=
get_dc_print
(
dc_attr
)))
break
;
if
(
print
->
flags
&
BANDING
)
{
print
->
flags
&=
~
BANDING
;
SetRectEmpty
(
rect
);
return
EndPage
(
hdc
);
}
print
->
flags
|=
BANDING
;
SetRect
(
rect
,
0
,
0
,
GetDeviceCaps
(
hdc
,
HORZRES
),
GetDeviceCaps
(
hdc
,
VERTRES
)
);
return
1
;
}
case
ENDDOC
:
return
EndDoc
(
hdc
);
...
...
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