Commit 1fb67788 authored by Johan Gill's avatar Johan Gill Committed by Alexandre Julliard

ddraw: Added a todo_wine test for SetCooperativeLevel.

parent 7833ca6b
...@@ -645,10 +645,16 @@ static void testcooperativelevels_normal(void) ...@@ -645,10 +645,16 @@ static void testcooperativelevels_normal(void)
static void testcooperativelevels_exclusive(void) static void testcooperativelevels_exclusive(void)
{ {
BOOL success;
HRESULT rc; HRESULT rc;
RECT window_rect;
/* Do some tests with DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN mode */ /* Do some tests with DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN mode */
/* First, resize the window so it is not the same size as any screen */
success = SetWindowPos(hwnd, 0, 0, 0, 281, 92, 0);
ok(success, "SetWindowPos failed\n");
/* Try to set exclusive mode only */ /* Try to set exclusive mode only */
rc = IDirectDraw_SetCooperativeLevel(lpDD, rc = IDirectDraw_SetCooperativeLevel(lpDD,
hwnd, DDSCL_EXCLUSIVE); hwnd, DDSCL_EXCLUSIVE);
...@@ -663,6 +669,10 @@ static void testcooperativelevels_exclusive(void) ...@@ -663,6 +669,10 @@ static void testcooperativelevels_exclusive(void)
rc = IDirectDraw_SetCooperativeLevel(lpDD, rc = IDirectDraw_SetCooperativeLevel(lpDD,
hwnd, DDSCL_FULLSCREEN | DDSCL_EXCLUSIVE); hwnd, DDSCL_FULLSCREEN | DDSCL_EXCLUSIVE);
ok(rc==DD_OK,"SetCooperativeLevel(DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN) returned: %x\n",rc); ok(rc==DD_OK,"SetCooperativeLevel(DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN) returned: %x\n",rc);
GetClientRect(hwnd, &window_rect);
/* rect_before_create is assumed to hold the screen rect */
rc = EqualRect(&rect_before_create, &window_rect);
todo_wine ok(rc!=0, "Fullscreen window has wrong size\n");
/* Set the focus window. Should fail */ /* Set the focus window. Should fail */
rc = IDirectDraw_SetCooperativeLevel(lpDD, rc = IDirectDraw_SetCooperativeLevel(lpDD,
......
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