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
e1ac6078
Commit
e1ac6078
authored
Apr 05, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Apr 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Remove some redundant and compiler-unfriendly pixel format checking code.
Spotted by Gerald Pfeifer and Nicolas Le Cam.
parent
b17fd2a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
surface.c
dlls/d3dx9_36/surface.c
+2
-6
No files found.
dlls/d3dx9_36/surface.c
View file @
e1ac6078
...
...
@@ -702,13 +702,11 @@ static void copy_simple_data(CONST BYTE *src, UINT srcpitch, POINT srcsize,
for
(
x
=
0
;
x
<
minwidth
;
x
++
)
{
/* extract source color components */
if
(
srcformat
->
type
==
FORMAT_ARGB
)
{
pixel
=
dword_from_bytes
(
srcptr
,
srcformat
->
bytes_per_pixel
);
get_relevant_argb_components
(
&
conv_info
,
pixel
,
channels
);
}
/* recombine the components */
if
(
destformat
->
type
==
FORMAT_ARGB
)
val
=
make_argb_color
(
&
conv_info
,
channels
);
val
=
make_argb_color
(
&
conv_info
,
channels
);
if
(
colorkey
)
{
get_relevant_argb_components
(
&
ck_conv_info
,
pixel
,
channels
);
...
...
@@ -769,13 +767,11 @@ static void point_filter_simple_data(CONST BYTE *src, UINT srcpitch, POINT srcsi
DWORD
val
=
0
;
/* extract source color components */
if
(
srcformat
->
type
==
FORMAT_ARGB
)
{
pixel
=
dword_from_bytes
(
srcptr
,
srcformat
->
bytes_per_pixel
);
get_relevant_argb_components
(
&
conv_info
,
pixel
,
channels
);
}
/* recombine the components */
if
(
destformat
->
type
==
FORMAT_ARGB
)
val
=
make_argb_color
(
&
conv_info
,
channels
);
val
=
make_argb_color
(
&
conv_info
,
channels
);
if
(
colorkey
)
{
get_relevant_argb_components
(
&
ck_conv_info
,
pixel
,
channels
);
...
...
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