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
786271e1
Commit
786271e1
authored
Oct 15, 2009
by
Louis Lenders
Committed by
Alexandre Julliard
Oct 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Test {IDirect3DTexture9, IDirect3DSurface9}::UnlockRect for…
d3d9/tests: Test {IDirect3DTexture9, IDirect3DSurface9}::UnlockRect for rectangles that are not locked.
parent
e3823e14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
surface.c
dlls/d3d9/tests/surface.c
+6
-1
No files found.
dlls/d3d9/tests/surface.c
View file @
786271e1
...
...
@@ -167,7 +167,10 @@ static void test_surface_alignment(IDirect3DDevice9 *device_ptr)
IDirect3DTexture9_GetLevelDesc
(
pTexture
,
j
,
&
descr
);
hr
=
IDirect3DTexture9_LockRect
(
pTexture
,
j
,
&
rc
,
NULL
,
0
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DTexture9_LockRect: %08x
\n
"
,
hr
);
IDirect3DTexture9_UnlockRect
(
pTexture
,
j
);
hr
=
IDirect3DTexture9_UnlockRect
(
pTexture
,
j
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DTexture9_UnLockRect: %08x
\n
"
,
hr
);
hr
=
IDirect3DTexture9_UnlockRect
(
pTexture
,
j
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"Double IDirect3DTexture9_UnLockRect failed with %08x
\n
"
,
hr
);
pitch
=
((
descr
.
Width
+
3
)
>>
2
)
<<
3
;
if
(
i
>
0
)
pitch
<<=
1
;
...
...
@@ -217,6 +220,8 @@ static void test_lockrect_offset(IDirect3DDevice9 *device)
hr
=
IDirect3DSurface9_UnlockRect
(
surface
);
ok
(
SUCCEEDED
(
hr
),
"UnlockRect failed (%08x)
\n
"
,
hr
);
hr
=
IDirect3DSurface9_UnlockRect
(
surface
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Double UnlockRect returned %08x, expected D3DERR_INVALIDCALL
\n
"
,
hr
);
hr
=
IDirect3DSurface9_LockRect
(
surface
,
&
locked_rect
,
&
rect
,
0
);
ok
(
SUCCEEDED
(
hr
),
"LockRect failed (%08x)
\n
"
,
hr
);
...
...
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