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
6d0f8133
Commit
6d0f8133
authored
Aug 19, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Simplify rectangle operations.
parent
f15dcec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
bitblt.c
dlls/winex11.drv/bitblt.c
+7
-28
No files found.
dlls/winex11.drv/bitblt.c
View file @
6d0f8133
...
...
@@ -916,34 +916,13 @@ static int BITBLT_GetSrcAreaStretch( X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
RECT
rectDst
=
dst
->
visrect
;
int
fg
,
bg
;
rectSrc
.
left
-=
src
->
x
;
rectSrc
.
right
-=
src
->
x
;
rectSrc
.
top
-=
src
->
y
;
rectSrc
.
bottom
-=
src
->
y
;
rectDst
.
left
-=
dst
->
x
;
rectDst
.
right
-=
dst
->
x
;
rectDst
.
top
-=
dst
->
y
;
rectDst
.
bottom
-=
dst
->
y
;
if
(
src
->
width
<
0
)
{
rectSrc
.
left
-=
src
->
width
;
rectSrc
.
right
-=
src
->
width
;
}
if
(
dst
->
width
<
0
)
{
rectDst
.
left
-=
dst
->
width
;
rectDst
.
right
-=
dst
->
width
;
}
if
(
src
->
height
<
0
)
{
rectSrc
.
top
-=
src
->
height
;
rectSrc
.
bottom
-=
src
->
height
;
}
if
(
dst
->
height
<
0
)
{
rectDst
.
top
-=
dst
->
height
;
rectDst
.
bottom
-=
dst
->
height
;
}
OffsetRect
(
&
rectSrc
,
-
src
->
x
,
-
src
->
y
);
OffsetRect
(
&
rectDst
,
-
dst
->
x
,
-
dst
->
y
);
if
(
src
->
width
<
0
)
OffsetRect
(
&
rectSrc
,
-
src
->
width
,
0
);
if
(
dst
->
width
<
0
)
OffsetRect
(
&
rectDst
,
-
dst
->
width
,
0
);
if
(
src
->
height
<
0
)
OffsetRect
(
&
rectSrc
,
0
,
-
src
->
height
);
if
(
dst
->
height
<
0
)
OffsetRect
(
&
rectDst
,
0
,
-
dst
->
height
);
get_colors
(
physDevDst
,
physDevSrc
,
&
fg
,
&
bg
);
wine_tsx11_lock
();
...
...
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