Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
75ac954c
Commit
75ac954c
authored
Feb 10, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Feb 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use an invisible window for tests.
parent
81d9e105
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
+36
-3
shader.c
dlls/d3d9/tests/shader.c
+12
-1
stateblock.c
dlls/d3d9/tests/stateblock.c
+12
-1
vertexdeclaration.c
dlls/d3d9/tests/vertexdeclaration.c
+12
-1
No files found.
dlls/d3d9/tests/shader.c
View file @
75ac954c
...
...
@@ -22,6 +22,17 @@
static
HMODULE
d3d9_handle
=
0
;
static
HWND
create_window
(
void
)
{
WNDCLASS
wc
=
{
0
};
wc
.
lpfnWndProc
=
&
DefWindowProc
;
wc
.
lpszClassName
=
"d3d9_test_wc"
;
RegisterClass
(
&
wc
);
return
CreateWindow
(
"d3d9_test_wc"
,
"d3d9_test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
}
static
IDirect3DDevice9
*
init_d3d9
(
void
)
{
IDirect3D9
*
(
__stdcall
*
d3d9_create
)(
UINT
SDKVersion
)
=
0
;
...
...
@@ -40,7 +51,7 @@ static IDirect3DDevice9 *init_d3d9(void)
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
present_parameters
.
hDeviceWindow
=
GetDesktopW
indow
();
present_parameters
.
hDeviceWindow
=
create_w
indow
();
present_parameters
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
hres
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
...
...
dlls/d3d9/tests/stateblock.c
View file @
75ac954c
...
...
@@ -21,6 +21,17 @@
static
HMODULE
d3d9_handle
=
0
;
static
HWND
create_window
(
void
)
{
WNDCLASS
wc
=
{
0
};
wc
.
lpfnWndProc
=
&
DefWindowProc
;
wc
.
lpszClassName
=
"d3d9_test_wc"
;
RegisterClass
(
&
wc
);
return
CreateWindow
(
"d3d9_test_wc"
,
"d3d9_test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
}
static
IDirect3DDevice9
*
init_d3d9
(
void
)
{
IDirect3D9
*
(
__stdcall
*
d3d9_create
)(
UINT
SDKVersion
)
=
0
;
...
...
@@ -39,7 +50,7 @@ static IDirect3DDevice9 *init_d3d9(void)
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
present_parameters
.
hDeviceWindow
=
GetDesktopW
indow
();
present_parameters
.
hDeviceWindow
=
create_w
indow
();
present_parameters
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
hres
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
...
...
dlls/d3d9/tests/vertexdeclaration.c
View file @
75ac954c
...
...
@@ -22,6 +22,17 @@
static
HMODULE
d3d9_handle
=
0
;
static
HWND
create_window
(
void
)
{
WNDCLASS
wc
=
{
0
};
wc
.
lpfnWndProc
=
&
DefWindowProc
;
wc
.
lpszClassName
=
"d3d9_test_wc"
;
RegisterClass
(
&
wc
);
return
CreateWindow
(
"d3d9_test_wc"
,
"d3d9_test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
}
static
IDirect3DDevice9
*
init_d3d9
(
void
)
{
IDirect3D9
*
(
__stdcall
*
d3d9_create
)(
UINT
SDKVersion
)
=
0
;
...
...
@@ -40,7 +51,7 @@ static IDirect3DDevice9 *init_d3d9(void)
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
present_parameters
.
hDeviceWindow
=
GetDesktopW
indow
();
present_parameters
.
hDeviceWindow
=
create_w
indow
();
present_parameters
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
hres
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_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