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
0b15963b
Commit
0b15963b
authored
Sep 14, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of redundant comparisons against FALSE.
parent
b68d2577
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
swapchain.c
dlls/wined3d/swapchain.c
+2
-1
swapchain_gdi.c
dlls/wined3d/swapchain_gdi.c
+2
-1
utils.c
dlls/wined3d/utils.c
+2
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
0b15963b
...
...
@@ -5313,7 +5313,7 @@ static void shader_arb_handle_instruction(const struct wined3d_shader_instructio
bool_const
=
get_bool_const
(
ins
,
This
,
ins
->
src
[
0
].
reg
.
idx
);
if
(
ins
->
src
[
0
].
modifiers
==
WINED3DSPSM_NOT
)
bool_const
=
!
bool_const
;
if
(
!
priv
->
muted
&&
bool_const
==
FALSE
)
if
(
!
priv
->
muted
&&
!
bool_const
)
{
shader_addline
(
buffer
,
"#if(FALSE){
\n
"
);
priv
->
muted
=
TRUE
;
...
...
dlls/wined3d/swapchain.c
View file @
0b15963b
...
...
@@ -81,7 +81,8 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface)
* this will be the original desktop resolution. In case of d3d7 this will be a NOP because ddraw sets the resolution
* before starting up Direct3D, thus orig_width and orig_height will be equal to the modes in the presentation params
*/
if
(
This
->
presentParms
.
Windowed
==
FALSE
&&
This
->
presentParms
.
AutoRestoreDisplayMode
)
{
if
(
!
This
->
presentParms
.
Windowed
&&
This
->
presentParms
.
AutoRestoreDisplayMode
)
{
mode
.
Width
=
This
->
orig_width
;
mode
.
Height
=
This
->
orig_height
;
mode
.
RefreshRate
=
0
;
...
...
dlls/wined3d/swapchain_gdi.c
View file @
0b15963b
...
...
@@ -65,7 +65,8 @@ static void WINAPI IWineGDISwapChainImpl_Destroy(IWineD3DSwapChain *iface)
* this will be the original desktop resolution. In case of d3d7 this will be a NOP because ddraw sets the resolution
* before starting up Direct3D, thus orig_width and orig_height will be equal to the modes in the presentation params
*/
if
(
This
->
presentParms
.
Windowed
==
FALSE
&&
This
->
presentParms
.
AutoRestoreDisplayMode
)
{
if
(
!
This
->
presentParms
.
Windowed
&&
This
->
presentParms
.
AutoRestoreDisplayMode
)
{
mode
.
Width
=
This
->
orig_width
;
mode
.
Height
=
This
->
orig_height
;
mode
.
RefreshRate
=
0
;
...
...
dlls/wined3d/utils.c
View file @
0b15963b
...
...
@@ -2880,7 +2880,8 @@ void gen_ffp_frag_op(IWineD3DStateBlockImpl *stateblock, struct ffp_frag_setting
memset
(
&
settings
->
op
[
i
],
0xff
,
sizeof
(
settings
->
op
[
i
]));
}
if
(
stateblock
->
renderState
[
WINED3DRS_FOGENABLE
]
==
FALSE
)
{
if
(
!
stateblock
->
renderState
[
WINED3DRS_FOGENABLE
])
{
settings
->
fog
=
FOG_OFF
;
}
else
if
(
stateblock
->
renderState
[
WINED3DRS_FOGTABLEMODE
]
==
WINED3DFOG_NONE
)
{
if
(
use_vs
(
stateblock
)
||
((
IWineD3DVertexDeclarationImpl
*
)
stateblock
->
vertexDecl
)
->
position_transformed
)
{
...
...
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