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
08386cd9
Commit
08386cd9
authored
Apr 20, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Clip visible rectangle to bitmap size in get_vis_rectangles.
parent
4d3eb56e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
printproc.c
dlls/wineps.drv/printproc.c
+5
-1
No files found.
dlls/wineps.drv/printproc.c
View file @
08386cd9
...
...
@@ -378,6 +378,10 @@ static void get_vis_rectangles(HDC hdc, struct bitblt_coords *dst,
src
->
width
=
rect
.
right
-
rect
.
left
;
src
->
height
=
rect
.
bottom
-
rect
.
top
;
get_bounding_rect
(
&
rect
,
src
->
x
,
src
->
y
,
src
->
width
,
src
->
height
);
if
(
rect
.
left
<
0
)
rect
.
left
=
0
;
if
(
rect
.
top
<
0
)
rect
.
top
=
0
;
if
(
rect
.
right
>
width
)
rect
.
right
=
width
;
if
(
rect
.
bottom
>
height
)
rect
.
bottom
=
height
;
src
->
visrect
=
rect
;
intersect_vis_rectangles
(
dst
,
src
);
...
...
@@ -413,7 +417,7 @@ static int stretch_blt(PHYSDEV dev, const EMRSTRETCHBLT *blt,
src
.
layout
=
0
;
get_vis_rectangles
(
dev
->
hdc
,
&
dst
,
&
blt
->
xformSrc
,
bi
->
bmiHeader
.
biWidth
,
bi
->
bmiHeader
.
biHeight
,
&
src
);
bi
->
bmiHeader
.
biWidth
,
abs
(
bi
->
bmiHeader
.
biHeight
)
,
&
src
);
memcpy
(
dst_info
,
bi
,
blt
->
cbBmiSrc
);
memset
(
&
bits
,
0
,
sizeof
(
bits
));
...
...
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