Johan Gill : ddraw: Added a todo_wine test for SetCooperativeLevel.
Alexandre Julliard
julliard at winehq.org
Wed Jul 28 10:45:10 CDT 2010
Module: wine
Branch: master
Commit: 1fb67788b126b77cf2bcf30acb31a2a1222503d3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1fb67788b126b77cf2bcf30acb31a2a1222503d3
Author: Johan Gill <johan.gill at gmail.com>
Date: Wed Jul 28 00:39:42 2010 +0200
ddraw: Added a todo_wine test for SetCooperativeLevel.
---
dlls/ddraw/tests/ddrawmodes.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index 7818255..8235d86 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,
More information about the wine-cvs
mailing list