Commit 7578bca0 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

d3d9/tests: Accept CURSOR_SUPPRESSED in cursor flags.

parent fbe20ab6
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define WINVER 0x0602 /* for CURSOR_SUPPRESSED */
#define COBJMACROS #define COBJMACROS
#include <d3d9.h> #include <d3d9.h>
#include "wine/test.h" #include "wine/test.h"
...@@ -1657,7 +1658,7 @@ static void test_cursor(void) ...@@ -1657,7 +1658,7 @@ static void test_cursor(void)
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info); info.cbSize = sizeof(info);
ok(GetCursorInfo(&info), "GetCursorInfo failed\n"); ok(GetCursorInfo(&info), "GetCursorInfo failed\n");
ok(info.flags & CURSOR_SHOWING, "The gdi cursor is hidden (%08x)\n", info.flags); ok(info.flags & (CURSOR_SHOWING|CURSOR_SUPPRESSED), "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); /* unchanged */
/* Still hidden */ /* Still hidden */
...@@ -1671,7 +1672,7 @@ static void test_cursor(void) ...@@ -1671,7 +1672,7 @@ static void test_cursor(void)
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info); info.cbSize = sizeof(info);
ok(GetCursorInfo(&info), "GetCursorInfo failed\n"); ok(GetCursorInfo(&info), "GetCursorInfo failed\n");
ok(info.flags & CURSOR_SHOWING, "The gdi cursor is hidden (%08x)\n", info.flags); ok(info.flags & (CURSOR_SHOWING|CURSOR_SUPPRESSED), "The gdi cursor is hidden (%08x)\n", info.flags);
ok(info.hCursor != cur, "The cursor handle is %p\n", info.hCursor); ok(info.hCursor != cur, "The cursor handle is %p\n", info.hCursor);
refcount = IDirect3DDevice9_Release(device); refcount = IDirect3DDevice9_Release(device);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment