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
4e54df5a
Commit
4e54df5a
authored
Aug 04, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Aug 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added top-down dib support to AlphaBlend.
parent
0abeb87e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
xrender.c
dlls/x11drv/xrender.c
+7
-1
No files found.
dlls/x11drv/xrender.c
View file @
4e54df5a
...
...
@@ -1532,6 +1532,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst,
char
*
dstbits
,
*
data
;
int
y
;
POINT
pts
[
2
];
BOOL
top_down
=
FALSE
;
if
(
!
X11DRV_XRender_Installed
)
{
FIXME
(
"Unable to AlphaBlend without Xrender
\n
"
);
...
...
@@ -1577,10 +1578,15 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst,
return
FALSE
;
}
dstbits
=
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
heightSrc
*
widthSrc
*
4
);
if
(
bmp
->
dib
->
dsBmih
.
biHeight
<
0
)
{
/* top-down dib */
top_down
=
TRUE
;
dstbits
+=
widthSrc
*
(
heightSrc
-
1
)
*
4
;
}
for
(
y
=
ySrc
+
heightSrc
-
1
;
y
>=
ySrc
;
y
--
)
{
memcpy
(
dstbits
,
(
char
*
)
bmp
->
dib
->
dsBm
.
bmBits
+
y
*
bmp
->
dib
->
dsBm
.
bmWidthBytes
+
xSrc
*
4
,
widthSrc
*
4
);
dstbits
+=
widthSrc
*
4
;
dstbits
+=
(
top_down
?
-
1
:
1
)
*
widthSrc
*
4
;
}
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