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
e8c7a474
Commit
e8c7a474
authored
Jun 25, 2009
by
Tony Wasserka
Committed by
Alexandre Julliard
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add tests for D3DXLoadSurfaceFromResource.
parent
345fc8a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
texture.c
dlls/d3dx9_36/tests/texture.c
+19
-0
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
e8c7a474
...
...
@@ -245,6 +245,25 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
ok
(
hr
==
D3DXERR_INVALIDDATA
,
"D3DXLoadSurfaceFromFile returned %#x, expected %#x
\n
"
,
hr
,
D3DXERR_INVALIDDATA
);
/* D3DXLoadSurfaceFromResource */
todo_wine
{
hr
=
D3DXLoadSurfaceFromResourceA
(
surf
,
NULL
,
NULL
,
NULL
,
MAKEINTRESOURCE
(
IDB_BITMAP_1x1
),
NULL
,
D3DX_DEFAULT
,
0
,
NULL
);
ok
(
hr
==
D3D_OK
,
"D3DXLoadSurfaceFromResource returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
hr
=
D3DXLoadSurfaceFromResourceA
(
surf
,
NULL
,
NULL
,
NULL
,
MAKEINTRESOURCE
(
IDD_BITMAPDATA_1x1
),
NULL
,
D3DX_DEFAULT
,
0
,
NULL
);
ok
(
hr
==
D3D_OK
,
"D3DXLoadSurfaceFromResource returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
}
hr
=
D3DXLoadSurfaceFromResourceA
(
surf
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
D3DX_DEFAULT
,
0
,
NULL
);
ok
(
hr
==
D3DXERR_INVALIDDATA
,
"D3DXLoadSurfaceFromResource returned %#x, expected %#x
\n
"
,
hr
,
D3DXERR_INVALIDDATA
);
hr
=
D3DXLoadSurfaceFromResourceA
(
NULL
,
NULL
,
NULL
,
NULL
,
MAKEINTRESOURCE
(
IDB_BITMAP_1x1
),
NULL
,
D3DX_DEFAULT
,
0
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXLoadSurfaceFromResource returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
D3DXLoadSurfaceFromResourceA
(
surf
,
NULL
,
NULL
,
NULL
,
MAKEINTRESOURCE
(
IDS_STRING
),
NULL
,
D3DX_DEFAULT
,
0
,
NULL
);
ok
(
hr
==
D3DXERR_INVALIDDATA
,
"D3DXLoadSurfaceFromResource returned %#x, expected %#x
\n
"
,
hr
,
D3DXERR_INVALIDDATA
);
/* cleanup */
check_release
((
IUnknown
*
)
surf
,
0
);
...
...
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