Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1c897954
Commit
1c897954
authored
Apr 03, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Apr 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Support index in alpha in BltOverride colorfill codepath.
Fixes a failure in ddraw p8_primary_test when running with opengl ddraw renderer.
parent
003f679c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
surface.c
dlls/wined3d/surface.c
+7
-2
No files found.
dlls/wined3d/surface.c
View file @
1c897954
...
...
@@ -3395,13 +3395,18 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
* 'clear' expect it in ARGB format => we need to do some conversion :-)
*/
if
(
This
->
resource
.
format
==
WINED3DFMT_P8
)
{
DWORD
alpha
;
if
(
primary_render_target_is_p8
(
myDevice
))
alpha
=
DDBltFx
->
u5
.
dwFillColor
<<
24
;
else
alpha
=
0xFF000000
;
if
(
This
->
palette
)
{
color
=
(
(
0xFF000000
)
|
color
=
(
alpha
|
(
This
->
palette
->
palents
[
DDBltFx
->
u5
.
dwFillColor
].
peRed
<<
16
)
|
(
This
->
palette
->
palents
[
DDBltFx
->
u5
.
dwFillColor
].
peGreen
<<
8
)
|
(
This
->
palette
->
palents
[
DDBltFx
->
u5
.
dwFillColor
].
peBlue
));
}
else
{
color
=
0xFF000000
;
color
=
alpha
;
}
}
else
if
(
This
->
resource
.
format
==
WINED3DFMT_R5G6B5
)
{
...
...
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