d3d9/tests: Accept CURSOR_SUPPRESSED in cursor flags.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fbe20ab62f
commit
7578bca0c0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue