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
45a1aae0
Commit
45a1aae0
authored
Oct 29, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Use explicit A calls.
parent
f7067233
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
35 deletions
+49
-35
Makefile.in
dlls/d3d8/tests/Makefile.in
+0
-1
device.c
dlls/d3d8/tests/device.c
+40
-25
stateblock.c
dlls/d3d8/tests/stateblock.c
+4
-4
visual.c
dlls/d3d8/tests/visual.c
+5
-5
No files found.
dlls/d3d8/tests/Makefile.in
View file @
45a1aae0
TESTDLL
=
d3d8.dll
IMPORTS
=
user32
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
device.c
\
...
...
dlls/d3d8/tests/device.c
View file @
45a1aae0
...
...
@@ -69,7 +69,7 @@ static void flush_events(void)
while
(
diff
>
0
)
{
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min_timeout
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
A
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
diff
=
time
-
GetTickCount
();
}
}
...
...
@@ -192,7 +192,8 @@ static void test_mipmap_levels(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -240,7 +241,8 @@ static void test_swapchain(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -387,7 +389,8 @@ static void test_refcount(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -722,7 +725,8 @@ static void test_cursor(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -846,7 +850,7 @@ static void test_cursor_pos(void)
wc
.
lpfnWndProc
=
test_cursor_proc
;
wc
.
lpszClassName
=
"d3d8_test_cursor_wc"
;
ok
(
RegisterClassA
(
&
wc
),
"Failed to register window class.
\n
"
);
window
=
CreateWindow
(
"d3d8_test_cursor_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
window
=
CreateWindow
A
(
"d3d8_test_cursor_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
320
,
240
,
NULL
,
NULL
,
NULL
,
NULL
);
ShowWindow
(
window
,
SW_SHOW
);
...
...
@@ -923,7 +927,8 @@ static void test_states(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -1517,7 +1522,8 @@ static void test_scene(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -1627,7 +1633,8 @@ static void test_shader(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -1840,7 +1847,8 @@ static void test_limits(void)
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
pD3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
pD3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -1907,7 +1915,8 @@ static void test_lights(void)
d3d8
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
d3d8
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
d3d8
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -1992,7 +2001,8 @@ static void test_render_zero_triangles(void)
d3d8
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
d3d8
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
d3d8
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -2056,7 +2066,8 @@ static void test_depth_stencil_reset(void)
d3d8
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
d3d8
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
d3d8
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -2240,7 +2251,7 @@ static DWORD WINAPI wndproc_thread(void *param)
{
MSG
msg
;
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
while
(
PeekMessage
A
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
res
=
WaitForSingleObject
(
p
->
test_finished
,
100
);
if
(
res
==
WAIT_OBJECT_0
)
break
;
if
(
res
!=
WAIT_TIMEOUT
)
...
...
@@ -2288,9 +2299,9 @@ static void test_wndproc(void)
wc
.
lpszClassName
=
"d3d8_test_wndproc_wc"
;
ok
(
RegisterClassA
(
&
wc
),
"Failed to register window class.
\n
"
);
thread_params
.
window_created
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
thread_params
.
window_created
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
!!
thread_params
.
window_created
,
"CreateEvent failed, last error %#x.
\n
"
,
GetLastError
());
thread_params
.
test_finished
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
thread_params
.
test_finished
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
!!
thread_params
.
test_finished
,
"CreateEvent failed, last error %#x.
\n
"
,
GetLastError
());
focus_window
=
CreateWindowA
(
"d3d8_test_wndproc_wc"
,
"d3d8_test"
,
...
...
@@ -2432,9 +2443,9 @@ static void test_wndproc_windowed(void)
wc
.
lpszClassName
=
"d3d8_test_wndproc_wc"
;
ok
(
RegisterClassA
(
&
wc
),
"Failed to register window class.
\n
"
);
thread_params
.
window_created
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
thread_params
.
window_created
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
!!
thread_params
.
window_created
,
"CreateEvent failed, last error %#x.
\n
"
,
GetLastError
());
thread_params
.
test_finished
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
thread_params
.
test_finished
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
!!
thread_params
.
test_finished
,
"CreateEvent failed, last error %#x.
\n
"
,
GetLastError
());
focus_window
=
CreateWindowA
(
"d3d8_test_wndproc_wc"
,
"d3d8_test"
,
...
...
@@ -2715,7 +2726,8 @@ static void test_ApplyStateBlock(void)
d3d8
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
d3d8
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
d3d8
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -2779,7 +2791,8 @@ static void test_depth_stencil_size(void)
d3d8
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
d3d8
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
d3d8
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -2964,7 +2977,8 @@ static void test_wrong_shader(void)
d3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
d3d
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window
\n
"
);
if
(
!
d3d
||
!
hwnd
)
goto
cleanup
;
...
...
@@ -3198,7 +3212,8 @@ static void depth_blit_test(void)
d3d8
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
ok
(
d3d8
!=
NULL
,
"Direct3DCreate8 failed.
\n
"
);
hwnd
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
hwnd
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
100
,
100
,
160
,
160
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"CreateWindow failed.
\n
"
);
if
(
!
d3d8
||
!
hwnd
)
goto
done
;
...
...
@@ -5744,16 +5759,16 @@ static void test_lockbox_invalid(void)
START_TEST
(
device
)
{
HMODULE
d3d8_handle
=
LoadLibraryA
(
"d3d8.dll"
);
WNDCLASS
wc
=
{
0
};
WNDCLASS
A
wc
=
{
0
};
if
(
!
d3d8_handle
)
{
skip
(
"Could not load d3d8.dll
\n
"
);
return
;
}
wc
.
lpfnWndProc
=
DefWindowProc
;
wc
.
lpfnWndProc
=
DefWindowProc
A
;
wc
.
lpszClassName
=
"d3d8_test_wc"
;
RegisterClass
(
&
wc
);
RegisterClass
A
(
&
wc
);
ValidateVertexShader
=
(
void
*
)
GetProcAddress
(
d3d8_handle
,
"ValidateVertexShader"
);
ValidatePixelShader
=
(
void
*
)
GetProcAddress
(
d3d8_handle
,
"ValidatePixelShader"
);
...
...
dlls/d3d8/tests/stateblock.c
View file @
45a1aae0
...
...
@@ -25,12 +25,12 @@ static DWORD texture_stages;
static
HWND
create_window
(
void
)
{
WNDCLASS
wc
=
{
0
};
wc
.
lpfnWndProc
=
DefWindowProc
;
WNDCLASS
A
wc
=
{
0
};
wc
.
lpfnWndProc
=
DefWindowProc
A
;
wc
.
lpszClassName
=
"d3d8_test_wc"
;
RegisterClass
(
&
wc
);
RegisterClass
A
(
&
wc
);
return
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
return
CreateWindow
A
(
"d3d8_test_wc"
,
"d3d8_test"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
}
static
HRESULT
init_d3d8
(
HMODULE
d3d8_module
,
IDirect3DDevice8
**
device
,
D3DPRESENT_PARAMETERS
*
device_pparams
)
...
...
dlls/d3d8/tests/visual.c
View file @
45a1aae0
...
...
@@ -37,14 +37,14 @@ struct vec4
static
HWND
create_window
(
void
)
{
WNDCLASS
wc
=
{
0
};
WNDCLASS
A
wc
=
{
0
};
HWND
ret
;
wc
.
lpfnWndProc
=
DefWindowProc
;
wc
.
lpfnWndProc
=
DefWindowProc
A
;
wc
.
lpszClassName
=
"d3d8_test_wc"
;
RegisterClass
(
&
wc
);
RegisterClass
A
(
&
wc
);
ret
=
CreateWindow
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_POPUP
|
WS_SYSMENU
,
20
,
20
,
640
,
480
,
0
,
0
,
0
,
0
);
ret
=
CreateWindow
A
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_POPUP
|
WS_SYSMENU
,
20
,
20
,
640
,
480
,
0
,
0
,
0
,
0
);
ShowWindow
(
ret
,
SW_SHOW
);
return
ret
;
}
...
...
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