Vincent Povirk : d3d9/tests: Accept CURSOR_SUPPRESSED in cursor flags.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 25 10:11:20 CST 2015
Module: wine
Branch: master
Commit: 7578bca0c09f233e8f1582cc77dcfd0aa266ac10
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7578bca0c09f233e8f1582cc77dcfd0aa266ac10
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Tue Nov 24 14:41:08 2015 -0600
d3d9/tests: Accept CURSOR_SUPPRESSED in cursor flags.
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d9/tests/device.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index 326e789..6cdb225 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define WINVER 0x0602 /* for CURSOR_SUPPRESSED */
#define COBJMACROS
#include <d3d9.h>
#include "wine/test.h"
@@ -1657,7 +1658,7 @@ static void test_cursor(void)
memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info);
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 */
/* Still hidden */
@@ -1671,7 +1672,7 @@ static void test_cursor(void)
memset(&info, 0, sizeof(info));
info.cbSize = sizeof(info);
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);
refcount = IDirect3DDevice9_Release(device);
More information about the wine-cvs
mailing list