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
b2a7111a
Commit
b2a7111a
authored
Aug 16, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Change some internal function and structure names to the more standard…
wined3d: Change some internal function and structure names to the more standard 'converter' spelling.
parent
e5e26739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
surface.c
dlls/wined3d/surface.c
+8
-8
No files found.
dlls/wined3d/surface.c
View file @
b2a7111a
...
...
@@ -3710,13 +3710,13 @@ static void convert_yuy2_r5g6b5(const BYTE *src, BYTE *dst,
}
}
struct
d3dfmt_convert
o
r_desc
struct
d3dfmt_convert
e
r_desc
{
enum
wined3d_format_id
from
,
to
;
void
(
*
convert
)(
const
BYTE
*
src
,
BYTE
*
dst
,
DWORD
pitch_in
,
DWORD
pitch_out
,
unsigned
int
w
,
unsigned
int
h
);
};
static
const
struct
d3dfmt_convert
or_desc
converto
rs
[]
=
static
const
struct
d3dfmt_convert
er_desc
converte
rs
[]
=
{
{
WINED3DFMT_R32_FLOAT
,
WINED3DFMT_R16_FLOAT
,
convert_r32_float_r16_float
},
{
WINED3DFMT_B5G6R5_UNORM
,
WINED3DFMT_B8G8R8X8_UNORM
,
convert_r5g6b5_x8r8g8b8
},
...
...
@@ -3726,15 +3726,15 @@ static const struct d3dfmt_convertor_desc convertors[] =
{
WINED3DFMT_YUY2
,
WINED3DFMT_B5G6R5_UNORM
,
convert_yuy2_r5g6b5
},
};
static
inline
const
struct
d3dfmt_convert
or_desc
*
find_converto
r
(
enum
wined3d_format_id
from
,
static
inline
const
struct
d3dfmt_convert
er_desc
*
find_converte
r
(
enum
wined3d_format_id
from
,
enum
wined3d_format_id
to
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
(
sizeof
(
convert
ors
)
/
sizeof
(
*
converto
rs
));
++
i
)
for
(
i
=
0
;
i
<
(
sizeof
(
convert
ers
)
/
sizeof
(
*
converte
rs
));
++
i
)
{
if
(
convert
ors
[
i
].
from
==
from
&&
converto
rs
[
i
].
to
==
to
)
return
&
convert
o
rs
[
i
];
if
(
convert
ers
[
i
].
from
==
from
&&
converte
rs
[
i
].
to
==
to
)
return
&
convert
e
rs
[
i
];
}
return
NULL
;
...
...
@@ -3754,11 +3754,11 @@ static inline const struct d3dfmt_convertor_desc *find_convertor(enum wined3d_fo
static
struct
wined3d_surface
*
surface_convert_format
(
struct
wined3d_surface
*
source
,
enum
wined3d_format_id
to_fmt
)
{
struct
wined3d_map_desc
src_map
,
dst_map
;
const
struct
d3dfmt_convert
o
r_desc
*
conv
;
const
struct
d3dfmt_convert
e
r_desc
*
conv
;
struct
wined3d_surface
*
ret
=
NULL
;
HRESULT
hr
;
conv
=
find_convert
o
r
(
source
->
resource
.
format
->
id
,
to_fmt
);
conv
=
find_convert
e
r
(
source
->
resource
.
format
->
id
,
to_fmt
);
if
(
!
conv
)
{
FIXME
(
"Cannot find a conversion function from format %s to %s.
\n
"
,
...
...
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