From 1fb67788b126b77cf2bcf30acb31a2a1222503d3 Mon Sep 17 00:00:00 2001 From: Johan Gill Date: Wed, 28 Jul 2010 00:39:42 +0200 Subject: [PATCH] ddraw: Added a todo_wine test for SetCooperativeLevel. --- dlls/ddraw/tests/ddrawmodes.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c index 7818255de41..8235d867fc7 100644 --- a/dlls/ddraw/tests/ddrawmodes.c +++ b/dlls/ddraw/tests/ddrawmodes.c @@ -645,10 +645,16 @@ static void testcooperativelevels_normal(void) static void testcooperativelevels_exclusive(void) { + BOOL success; HRESULT rc; + RECT window_rect; /* 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 */ rc = IDirectDraw_SetCooperativeLevel(lpDD, hwnd, DDSCL_EXCLUSIVE); @@ -663,6 +669,10 @@ static void testcooperativelevels_exclusive(void) rc = IDirectDraw_SetCooperativeLevel(lpDD, hwnd, DDSCL_FULLSCREEN | DDSCL_EXCLUSIVE); 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 */ rc = IDirectDraw_SetCooperativeLevel(lpDD, -- 2.11.4.GIT