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
4e8da470
Commit
4e8da470
authored
Nov 21, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Fix test_cursor().
parent
c440168e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
device.c
dlls/d3d8/tests/device.c
+10
-5
No files found.
dlls/d3d8/tests/device.c
View file @
4e8da470
...
...
@@ -759,6 +759,7 @@ static void test_cursor(void)
HCURSOR
cur
;
HWND
window
;
HRESULT
hr
;
BOOL
ret
;
pGetCursorInfo
=
(
void
*
)
GetProcAddress
(
user32_handle
,
"GetCursorInfo"
);
if
(
!
pGetCursorInfo
)
...
...
@@ -767,14 +768,19 @@ static void test_cursor(void)
return
;
}
window
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
0
,
0
,
640
,
480
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!!
window
,
"Failed to create a window.
\n
"
);
ret
=
SetCursorPos
(
50
,
50
);
ok
(
ret
,
"Failed to set cursor position.
\n
"
);
flush_events
();
memset
(
&
info
,
0
,
sizeof
(
info
));
info
.
cbSize
=
sizeof
(
info
);
ok
(
pGetCursorInfo
(
&
info
),
"GetCursorInfo failed
\n
"
);
cur
=
info
.
hCursor
;
window
=
CreateWindowA
(
"d3d8_test_wc"
,
"d3d8_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!!
window
,
"Failed to create a window.
\n
"
);
d3d
=
Direct3DCreate8
(
D3D_SDK_VERSION
);
ok
(
!!
d3d
,
"Failed to create a D3D object.
\n
"
);
if
(
!
(
device
=
create_device
(
d3d
,
window
,
NULL
)))
...
...
@@ -817,12 +823,11 @@ static void test_cursor(void)
hr
=
IDirect3DDevice8_ShowCursor
(
device
,
TRUE
);
ok
(
hr
==
TRUE
,
"IDirect3DDevice8_ShowCursor returned %#08x
\n
"
,
hr
);
/* GDI cursor unchanged */
memset
(
&
info
,
0
,
sizeof
(
info
));
info
.
cbSize
=
sizeof
(
info
);
ok
(
pGetCursorInfo
(
&
info
),
"GetCursorInfo failed
\n
"
);
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 */
ok
(
info
.
hCursor
!=
cur
,
"The cursor handle is %p
\n
"
,
info
.
hCursor
);
refcount
=
IDirect3DDevice8_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
...
...
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