Sam Edwards : d3d8/tests: Verify window style after exiting fullscreen mode .
Alexandre Julliard
julliard at winehq.org
Wed Apr 3 14:33:55 CDT 2013
Module: wine
Branch: master
Commit: ce6173264dd6bdc91f414056ae8a623577bed5d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce6173264dd6bdc91f414056ae8a623577bed5d0
Author: Sam Edwards <CFSworks at gmail.com>
Date: Mon Apr 1 17:02:56 2013 -0600
d3d8/tests: Verify window style after exiting fullscreen mode.
---
dlls/d3d8/tests/device.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index fbc2d19..ba7e5e6 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -2829,6 +2829,7 @@ static void test_window_style(void)
LONG style, expected_style;
IDirect3DDevice8 *device;
IDirect3D8 *d3d8;
+ HRESULT hr;
ULONG ref;
@@ -2885,6 +2886,26 @@ static void test_window_style(void)
focus_rect.left, focus_rect.top, focus_rect.right, focus_rect.bottom,
r.left, r.top, r.right, r.bottom);
+ hr = reset_device(device, device_window, TRUE);
+ ok(SUCCEEDED(hr), "Failed to reset device, hr %#x.\n", hr);
+
+ style = GetWindowLongA(device_window, GWL_STYLE);
+ expected_style = device_style | WS_VISIBLE;
+ ok(style == expected_style, "Expected device window style %#x, got %#x.\n",
+ expected_style, style);
+ style = GetWindowLongA(device_window, GWL_EXSTYLE);
+ expected_style = device_exstyle | WS_EX_TOPMOST;
+ ok(style == expected_style, "Expected device window extended style %#x, got %#x.\n",
+ expected_style, style);
+
+ style = GetWindowLongA(focus_window, GWL_STYLE);
+ ok(style == focus_style, "Expected focus window style %#x, got %#x.\n",
+ focus_style, style);
+ style = GetWindowLongA(focus_window, GWL_EXSTYLE);
+ ok(style == focus_exstyle, "Expected focus window extended style %#x, got %#x.\n",
+ focus_exstyle, style);
+
+
ref = IDirect3DDevice8_Release(device);
ok(ref == 0, "The device was not properly freed: refcount %u.\n", ref);
More information about the wine-cvs
mailing list