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
1e2e45ce
Commit
1e2e45ce
authored
Jul 18, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Avoid overflowing the source rectangle in StretchBlt.
parent
5ce421ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
bitblt.c
dlls/winex11.drv/bitblt.c
+5
-12
No files found.
dlls/winex11.drv/bitblt.c
View file @
1e2e45ce
...
...
@@ -804,9 +804,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
/* Retrieve a source row */
BITBLT_GetRow
(
srcImage
,
rowSrc
,
(
ysrc
>>
16
)
-
visRectSrc
->
top
,
hswap
?
widthSrc
-
visRectSrc
->
right
:
visRectSrc
->
left
,
visRectSrc
->
right
-
visRectSrc
->
left
,
visRectSrc
->
left
,
visRectSrc
->
right
-
visRectSrc
->
left
,
dstImage
->
depth
,
foreground
,
background
,
pixel_mask
,
hswap
);
/* Stretch or shrink it */
...
...
@@ -814,9 +812,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
BITBLT_StretchRow
(
rowSrc
,
rowDst
,
visRectDst
->
left
,
visRectDst
->
right
-
visRectDst
->
left
,
xinc
,
xoff
,
mode
);
else
BITBLT_ShrinkRow
(
rowSrc
,
rowDst
,
hswap
?
widthSrc
-
visRectSrc
->
right
:
visRectSrc
->
left
,
else
BITBLT_ShrinkRow
(
rowSrc
,
rowDst
,
visRectSrc
->
left
,
visRectSrc
->
right
-
visRectSrc
->
left
,
xinc
,
xoff
,
mode
);
...
...
@@ -863,9 +859,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
/* Retrieve a source row */
BITBLT_GetRow
(
srcImage
,
rowSrc
,
ysrc
-
visRectSrc
->
top
,
hswap
?
widthSrc
-
visRectSrc
->
right
:
visRectSrc
->
left
,
visRectSrc
->
right
-
visRectSrc
->
left
,
visRectSrc
->
left
,
visRectSrc
->
right
-
visRectSrc
->
left
,
dstImage
->
depth
,
foreground
,
background
,
pixel_mask
,
hswap
);
/* Stretch or shrink it */
...
...
@@ -873,9 +867,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
BITBLT_StretchRow
(
rowSrc
,
rowDst
,
visRectDst
->
left
,
visRectDst
->
right
-
visRectDst
->
left
,
xinc
,
xoff
,
mode
);
else
BITBLT_ShrinkRow
(
rowSrc
,
rowDst
,
hswap
?
widthSrc
-
visRectSrc
->
right
:
visRectSrc
->
left
,
else
BITBLT_ShrinkRow
(
rowSrc
,
rowDst
,
visRectSrc
->
left
,
visRectSrc
->
right
-
visRectSrc
->
left
,
xinc
,
xoff
,
mode
);
...
...
@@ -1474,6 +1466,7 @@ BOOL X11DRV_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
GC
tmpGC
;
if
(
IsRectEmpty
(
&
dst
->
visrect
))
return
TRUE
;
if
(
IsRectEmpty
(
&
src
->
visrect
))
return
TRUE
;
fStretch
=
(
src
->
width
!=
dst
->
width
)
||
(
src
->
height
!=
dst
->
height
);
...
...
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