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
3ba0e7b0
Commit
3ba0e7b0
authored
Jan 06, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Replace some '#if 0's with 'if (0)'s.
parent
4bc31a96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
surface.c
dlls/d3d9/tests/surface.c
+1
-3
No files found.
dlls/d3d9/tests/surface.c
View file @
3ba0e7b0
...
...
@@ -135,12 +135,10 @@ static void test_surface_alignment(IDirect3DDevice9 *device_ptr)
hr
=
IDirect3DSurface9_LockRect
(
surface_ptr
,
&
lockedRect
,
NULL
,
0
);
ok
(
hr
==
D3D_OK
,
"IDirect3DSurface9_LockRect returned %08x
\n
"
,
hr
);
ok
(
!
(
lockedRect
.
Pitch
&
3
),
"Surface pitch %d is not 32-bit aligned
\n
"
,
lockedRect
.
Pitch
);
#if 0
/* Some applications also depend on the exact pitch, rather than just
* the alignment. However, this test will fail or succeed depending
* on the NP2 mode we're using. */
ok(lockedRect.Pitch == 12, "Got pitch %d, expected 12\n", lockedRect.Pitch);
#endif
if
(
0
)
ok
(
lockedRect
.
Pitch
==
12
,
"Got pitch %d, expected 12
\n
"
,
lockedRect
.
Pitch
);
hr
=
IDirect3DSurface9_UnlockRect
(
surface_ptr
);
IDirect3DSurface9_Release
(
surface_ptr
);
}
...
...
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