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
6f8cb77e
Commit
6f8cb77e
authored
Oct 01, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Convert to WINED3DFMT_B8G8R8A8_UNORM for WINED3D_CT_P8.
parent
632d2fca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
surface.c
dlls/wined3d/surface.c
+5
-5
No files found.
dlls/wined3d/surface.c
View file @
6f8cb77e
...
...
@@ -1638,9 +1638,9 @@ static void d3dfmt_get_conv(const struct wined3d_texture *texture, BOOL need_alp
&&
texture
==
texture
->
swapchain
->
front_buffer
))
||
colorkey_active
)
{
*
conversion_type
=
WINED3D_CT_P8
;
format
->
glInternal
=
GL_RGBA
;
format
->
glFormat
=
GL_
RGB
A
;
format
->
glType
=
GL_UNSIGNED_
BYTE
;
format
->
glInternal
=
GL_RGBA
8
;
format
->
glFormat
=
GL_
BGR
A
;
format
->
glType
=
GL_UNSIGNED_
INT_8_8_8_8_REV
;
format
->
conv_byte_count
=
4
;
}
}
...
...
@@ -3180,9 +3180,9 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
for
(
x
=
0
;
x
<
width
;
x
++
)
{
BYTE
color
=
*
source
++
;
*
dest
++
=
palette
->
colors
[
color
].
rgbRed
;
*
dest
++
=
palette
->
colors
[
color
].
rgbGreen
;
*
dest
++
=
palette
->
colors
[
color
].
rgbBlue
;
*
dest
++
=
palette
->
colors
[
color
].
rgbGreen
;
*
dest
++
=
palette
->
colors
[
color
].
rgbRed
;
*
dest
++
=
0
;
}
}
...
...
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