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
2c7be38b
Commit
2c7be38b
authored
Oct 02, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Convert to WINED3DFMT_B8G8R8A8_UNORM for WINED3D_CT_CK_B8G8R8X8.
parent
5afbb6ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
surface.c
dlls/wined3d/surface.c
+9
-9
No files found.
dlls/wined3d/surface.c
View file @
2c7be38b
...
@@ -1607,7 +1607,7 @@ static void d3dfmt_get_conv(const struct wined3d_texture *texture, BOOL need_alp
...
@@ -1607,7 +1607,7 @@ static void d3dfmt_get_conv(const struct wined3d_texture *texture, BOOL need_alp
{
WINED3DFMT_B5G6R5_UNORM
,
WINED3D_CT_CK_B5G6R5
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
2
},
{
WINED3DFMT_B5G6R5_UNORM
,
WINED3D_CT_CK_B5G6R5
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
2
},
{
WINED3DFMT_B5G5R5X1_UNORM
,
WINED3D_CT_CK_B5G5R5X1
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
2
},
{
WINED3DFMT_B5G5R5X1_UNORM
,
WINED3D_CT_CK_B5G5R5X1
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
2
},
{
WINED3DFMT_B8G8R8_UNORM
,
WINED3D_CT_CK_B8G8R8
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
4
},
{
WINED3DFMT_B8G8R8_UNORM
,
WINED3D_CT_CK_B8G8R8
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
4
},
{
WINED3DFMT_B8G8R8X8_UNORM
,
WINED3D_CT_CK_B8G8R8X8
,
GL_RGBA8
,
GL_
RGBA
,
GL_UNSIGNED_INT_8_8_8_8
,
4
},
{
WINED3DFMT_B8G8R8X8_UNORM
,
WINED3D_CT_CK_B8G8R8X8
,
GL_RGBA8
,
GL_
BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
4
},
{
WINED3DFMT_B8G8R8A8_UNORM
,
WINED3D_CT_CK_B8G8R8A8
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
4
},
{
WINED3DFMT_B8G8R8A8_UNORM
,
WINED3D_CT_CK_B8G8R8A8
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
4
},
};
};
...
@@ -3264,17 +3264,17 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
...
@@ -3264,17 +3264,17 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
break
;
break
;
case
WINED3D_CT_CK_B8G8R8X8
:
case
WINED3D_CT_CK_B8G8R8X8
:
/* Converting X8R8G8B8 format to R8G8B8A8 with color-keying. */
for
(
y
=
0
;
y
<
height
;
++
y
)
for
(
y
=
0
;
y
<
height
;
y
++
)
{
{
source
=
src
+
pitch
*
y
;
source
=
src
+
pitch
*
y
;
dest
=
dst
+
outpitch
*
y
;
dest
=
dst
+
outpitch
*
y
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
++
x
)
DWORD
color
=
0xffffff
&
*
(
const
DWORD
*
)
source
;
{
DWORD
dstcolor
=
color
<<
8
;
DWORD
color
=
*
(
const
DWORD
*
)
source
;
if
(
!
color_in_range
(
&
surface
->
container
->
src_blt_color_key
,
color
))
if
(
color_in_range
(
&
surface
->
container
->
src_blt_color_key
,
color
))
dstcolor
|=
0xff
;
*
(
DWORD
*
)
dest
=
color
&
~
0xff000000
;
*
(
DWORD
*
)
dest
=
dstcolor
;
else
*
(
DWORD
*
)
dest
=
color
|
0xff000000
;
source
+=
4
;
source
+=
4
;
dest
+=
4
;
dest
+=
4
;
}
}
...
...
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