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
c20a2855
Commit
c20a2855
authored
Aug 14, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Make tests run again on win95.
parent
4e8b83dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
device.c
dlls/d3d8/tests/device.c
+13
-3
No files found.
dlls/d3d8/tests/device.c
View file @
c20a2855
...
...
@@ -24,6 +24,8 @@
static
IDirect3D8
*
(
WINAPI
*
pDirect3DCreate8
)(
UINT
);
static
BOOL
(
WINAPI
*
pGetCursorInfo
)(
PCURSORINFO
);
static
const
DWORD
simple_vs
[]
=
{
0xFFFE0101
,
/* vs_1_1 */
0x00000009
,
0xC0010000
,
0x90E40000
,
0xA0E40000
,
/* dp4 oPos.x, v0, c0 */
0x00000009
,
0xC0020000
,
0x90E40000
,
0xA0E40001
,
/* dp4 oPos.y, v0, c1 */
...
...
@@ -616,10 +618,18 @@ static void test_cursor(void)
CURSORINFO
info
;
IDirect3DSurface8
*
cursor
=
NULL
;
HCURSOR
cur
;
HMODULE
user32_handle
=
GetModuleHandleA
(
"user32.dll"
);
pGetCursorInfo
=
(
void
*
)
GetProcAddress
(
user32_handle
,
"GetCursorInfo"
);
if
(
!
pGetCursorInfo
)
{
skip
(
"GetCursorInfo is not available
\n
"
);
return
;
}
memset
(
&
info
,
0
,
sizeof
(
info
));
info
.
cbSize
=
sizeof
(
info
);
hr
=
GetCursorInfo
(
&
info
);
hr
=
p
GetCursorInfo
(
&
info
);
cur
=
info
.
hCursor
;
pD3d
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
...
...
@@ -664,7 +674,7 @@ static void test_cursor(void)
memset
(
&
info
,
0
,
sizeof
(
info
));
info
.
cbSize
=
sizeof
(
info
);
hr
=
GetCursorInfo
(
&
info
);
hr
=
p
GetCursorInfo
(
&
info
);
ok
(
hr
!=
0
,
"GetCursorInfo returned %#08x
\n
"
,
hr
);
ok
(
info
.
flags
&
CURSOR_SHOWING
,
"The gdi cursor is hidden (%08x)
\n
"
,
info
.
flags
);
ok
(
info
.
hCursor
==
cur
,
"The cursor handle is %p
\n
"
,
info
.
hCursor
);
/* unchanged */
...
...
@@ -680,7 +690,7 @@ static void test_cursor(void)
/* GDI cursor unchanged */
memset
(
&
info
,
0
,
sizeof
(
info
));
info
.
cbSize
=
sizeof
(
info
);
hr
=
GetCursorInfo
(
&
info
);
hr
=
p
GetCursorInfo
(
&
info
);
ok
(
hr
!=
0
,
"GetCursorInfo returned %#08x
\n
"
,
hr
);
ok
(
info
.
flags
&
CURSOR_SHOWING
,
"The gdi cursor is hidden (%08x)
\n
"
,
info
.
flags
);
ok
(
info
.
hCursor
==
cur
,
"The cursor handle is %p
\n
"
,
info
.
hCursor
);
/* unchanged */
...
...
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