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
d73c7109
Commit
d73c7109
authored
Dec 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Reduce usage of long integral types in surface.c.
parent
894e4636
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
surface.c
dlls/wined3d/surface.c
+9
-7
wined3d.h
include/wine/wined3d.h
+5
-5
No files found.
dlls/wined3d/surface.c
View file @
d73c7109
...
...
@@ -41,7 +41,7 @@ static void get_color_masks(const struct wined3d_format *format, uint32_t *masks
}
static
void
convert_r32_float_r16_float
(
const
BYTE
*
src
,
BYTE
*
dst
,
DWORD
pitch_in
,
DWORD
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
unsigned
int
pitch_in
,
unsigned
int
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
{
unsigned
short
*
dst_s
;
const
float
*
src_f
;
...
...
@@ -61,7 +61,7 @@ static void convert_r32_float_r16_float(const BYTE *src, BYTE *dst,
}
static
void
convert_r5g6b5_x8r8g8b8
(
const
BYTE
*
src
,
BYTE
*
dst
,
DWORD
pitch_in
,
DWORD
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
unsigned
int
pitch_in
,
unsigned
int
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
{
static
const
unsigned
char
convert_5to8
[]
=
{
...
...
@@ -103,7 +103,7 @@ static void convert_r5g6b5_x8r8g8b8(const BYTE *src, BYTE *dst,
/* We use this for both B8G8R8A8 -> B8G8R8X8 and B8G8R8X8 -> B8G8R8A8, since
* in both cases we're just setting the X / Alpha channel to 0xff. */
static
void
convert_a8r8g8b8_x8r8g8b8
(
const
BYTE
*
src
,
BYTE
*
dst
,
DWORD
pitch_in
,
DWORD
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
unsigned
int
pitch_in
,
unsigned
int
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
{
unsigned
int
x
,
y
;
...
...
@@ -127,7 +127,7 @@ static inline BYTE cliptobyte(int x)
}
static
void
convert_yuy2_x8r8g8b8
(
const
BYTE
*
src
,
BYTE
*
dst
,
DWORD
pitch_in
,
DWORD
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
unsigned
int
pitch_in
,
unsigned
int
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
{
int
c2
,
d
,
e
,
r2
=
0
,
g2
=
0
,
b2
=
0
;
unsigned
int
x
,
y
;
...
...
@@ -169,7 +169,7 @@ static void convert_yuy2_x8r8g8b8(const BYTE *src, BYTE *dst,
}
static
void
convert_yuy2_r5g6b5
(
const
BYTE
*
src
,
BYTE
*
dst
,
DWORD
pitch_in
,
DWORD
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
unsigned
int
pitch_in
,
unsigned
int
pitch_out
,
unsigned
int
w
,
unsigned
int
h
)
{
unsigned
int
x
,
y
;
int
c2
,
d
,
e
,
r2
=
0
,
g2
=
0
,
b2
=
0
;
...
...
@@ -212,7 +212,9 @@ static void convert_yuy2_r5g6b5(const BYTE *src, BYTE *dst,
struct
d3dfmt_converter_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
);
void
(
*
convert
)(
const
BYTE
*
src
,
BYTE
*
dst
,
unsigned
int
pitch_in
,
unsigned
int
pitch_out
,
unsigned
int
w
,
unsigned
int
h
);
};
static
const
struct
d3dfmt_converter_desc
converters
[]
=
...
...
@@ -968,7 +970,7 @@ do { \
}
else
{
DWORD
masks
[
3
];
uint32_t
masks
[
3
];
get_color_masks
(
src_format
,
masks
);
keymask
=
masks
[
0
]
|
masks
[
1
]
|
masks
[
2
];
}
...
...
include/wine/wined3d.h
View file @
d73c7109
...
...
@@ -1994,15 +1994,15 @@ struct wined3d_caps
struct
wined3d_color_key
{
DWORD
color_space_low_value
;
/* low boundary of color space that is to
* be treated as Color Key, inclusive */
DWORD
color_space_high_value
;
/* high boundary of color space that is
* to be treated as Color Key, inclusive */
unsigned
int
color_space_low_value
;
/* low boundary of color space that is to
* be treated as Color Key, inclusive */
unsigned
int
color_space_high_value
;
/* high boundary of color space that is
* to be treated as Color Key, inclusive */
};
struct
wined3d_blt_fx
{
DWORD
fx
;
uint32_t
fx
;
struct
wined3d_color_key
dst_color_key
;
struct
wined3d_color_key
src_color_key
;
enum
wined3d_format_id
resolve_format_id
;
...
...
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