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
90e3312c
Commit
90e3312c
authored
Sep 30, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use a more consistent naming for wined3d_conversion_type elements.
parent
df21c2b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
surface.c
dlls/wined3d/surface.c
+12
-12
wined3d_private.h
dlls/wined3d/wined3d_private.h
+6
-6
No files found.
dlls/wined3d/surface.c
View file @
90e3312c
...
...
@@ -1604,11 +1604,11 @@ static void d3dfmt_get_conv(const struct wined3d_texture *texture, BOOL need_alp
}
color_key_info
[]
=
{
{
WINED3DFMT_B5G6R5_UNORM
,
WINED3D_CT_CK_
565
,
GL_RGB5_A1
,
GL_RGBA
,
GL_UNSIGNED_SHORT_5_5_5_1
,
2
},
{
WINED3DFMT_B5G5R5X1_UNORM
,
WINED3D_CT_CK_
5551
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
2
},
{
WINED3DFMT_B8G8R8_UNORM
,
WINED3D_CT_CK_
RGB24
,
GL_RGBA8
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8
,
4
},
{
WINED3DFMT_B8G8R8X8_UNORM
,
WINED3D_CT_
RGB32_888
,
GL_RGBA8
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8
,
4
},
{
WINED3DFMT_B8G8R8A8_UNORM
,
WINED3D_CT_CK_
ARGB32
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
4
},
{
WINED3DFMT_B5G6R5_UNORM
,
WINED3D_CT_CK_
B5G6R5
,
GL_RGB5_A1
,
GL_RGBA
,
GL_UNSIGNED_SHORT_5_5_5_1
,
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_RGBA
,
GL_UNSIGNED_INT_8_8_8_8
,
4
},
{
WINED3DFMT_B8G8R8X8_UNORM
,
WINED3D_CT_
CK_B8G8R8X8
,
GL_RGBA8
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8
,
4
},
{
WINED3DFMT_B8G8R8A8_UNORM
,
WINED3D_CT_CK_
B8G8R8A8
,
GL_RGBA8
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
4
},
};
*
format
=
*
texture
->
resource
.
format
;
...
...
@@ -1637,7 +1637,7 @@ static void d3dfmt_get_conv(const struct wined3d_texture *texture, BOOL need_alp
if
(
!
((
gl_info
->
supported
[
ARB_FRAGMENT_PROGRAM
]
&&
texture
->
swapchain
&&
texture
==
texture
->
swapchain
->
front_buffer
))
||
colorkey_active
)
{
*
conversion_type
=
WINED3D_CT_P
ALETTED
;
*
conversion_type
=
WINED3D_CT_P
8
;
format
->
glInternal
=
GL_RGBA
;
format
->
glFormat
=
GL_RGBA
;
format
->
glType
=
GL_UNSIGNED_BYTE
;
...
...
@@ -3174,7 +3174,7 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
break
;
}
case
WINED3D_CT_P
ALETTED
:
case
WINED3D_CT_P
8
:
if
(
surface
->
container
->
swapchain
&&
surface
->
container
->
swapchain
->
palette
)
{
unsigned
int
x
,
y
;
...
...
@@ -3210,7 +3210,7 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
break
;
case
WINED3D_CT_CK_
56
5
:
case
WINED3D_CT_CK_
B5G6R
5
:
{
/* Converting the 565 format in 5551 packed to emulate color-keying.
...
...
@@ -3242,7 +3242,7 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
}
break
;
case
WINED3D_CT_CK_
555
1
:
case
WINED3D_CT_CK_
B5G5R5X
1
:
{
/* Converting X1R5G5B5 format to R5G5B5A1 to emulate color-keying. */
unsigned
int
x
,
y
;
...
...
@@ -3265,7 +3265,7 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
}
break
;
case
WINED3D_CT_CK_
RGB24
:
case
WINED3D_CT_CK_
B8G8R8
:
{
/* Converting R8G8B8 format to R8G8B8A8 with color-keying. */
unsigned
int
x
,
y
;
...
...
@@ -3286,7 +3286,7 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
}
break
;
case
WINED3D_CT_
RGB32_88
8
:
case
WINED3D_CT_
CK_B8G8R8X
8
:
{
/* Converting X8R8G8B8 format to R8G8B8A8 with color-keying. */
unsigned
int
x
,
y
;
...
...
@@ -3307,7 +3307,7 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
}
break
;
case
WINED3D_CT_CK_
ARGB32
:
case
WINED3D_CT_CK_
B8G8R8A8
:
{
unsigned
int
x
,
y
;
for
(
y
=
0
;
y
<
height
;
++
y
)
...
...
dlls/wined3d/wined3d_private.h
View file @
90e3312c
...
...
@@ -2353,12 +2353,12 @@ void flip_surface(struct wined3d_surface *front, struct wined3d_surface *back) D
enum
wined3d_conversion_type
{
WINED3D_CT_NONE
,
WINED3D_CT_P
ALETTED
,
WINED3D_CT_CK_
56
5
,
WINED3D_CT_CK_
555
1
,
WINED3D_CT_CK_
RGB24
,
WINED3D_CT_
RGB32_88
8
,
WINED3D_CT_CK_
ARGB32
,
WINED3D_CT_P
8
,
WINED3D_CT_CK_
B5G6R
5
,
WINED3D_CT_CK_
B5G5R5X
1
,
WINED3D_CT_CK_
B8G8R8
,
WINED3D_CT_
CK_B8G8R8X
8
,
WINED3D_CT_CK_
B8G8R8A8
,
};
struct
wined3d_sampler
...
...
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