Commit f5b4da0d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1/tests: Don't call compare_surface() inside ok().

parent 4980830b
...@@ -277,6 +277,7 @@ static void test_clip(void) ...@@ -277,6 +277,7 @@ static void test_clip(void)
D2D1_SIZE_F size; D2D1_SIZE_F size;
HWND window; HWND window;
HRESULT hr; HRESULT hr;
BOOL match;
static const D2D1_MATRIX_3X2_F identity = static const D2D1_MATRIX_3X2_F identity =
{ {
1.0f, 0.0f, 1.0f, 0.0f,
...@@ -370,7 +371,8 @@ static void test_clip(void) ...@@ -370,7 +371,8 @@ static void test_clip(void)
hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL); hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL);
ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr);
ok(compare_surface(surface, "035a44d4198d6e422e9de6185b5b2c2bac5e33c9"), "Surface does not match.\n"); match = compare_surface(surface, "035a44d4198d6e422e9de6185b5b2c2bac5e33c9");
ok(match, "Surface does not match.\n");
ID2D1RenderTarget_Release(rt); ID2D1RenderTarget_Release(rt);
IDXGISurface_Release(surface); IDXGISurface_Release(surface);
...@@ -606,6 +608,7 @@ static void test_color_brush(void) ...@@ -606,6 +608,7 @@ static void test_color_brush(void)
float opacity; float opacity;
HWND window; HWND window;
HRESULT hr; HRESULT hr;
BOOL match;
if (!(device = create_device())) if (!(device = create_device()))
{ {
...@@ -681,7 +684,8 @@ static void test_color_brush(void) ...@@ -681,7 +684,8 @@ static void test_color_brush(void)
hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL); hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL);
ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr);
ok(compare_surface(surface, "6d1218fca5e21fb7e287b3a439d60dbc251f5ceb"), "Surface does not match.\n"); match = compare_surface(surface, "6d1218fca5e21fb7e287b3a439d60dbc251f5ceb");
ok(match, "Surface does not match.\n");
ID2D1SolidColorBrush_Release(brush); ID2D1SolidColorBrush_Release(brush);
ID2D1RenderTarget_Release(rt); ID2D1RenderTarget_Release(rt);
...@@ -711,6 +715,7 @@ static void test_bitmap_brush(void) ...@@ -711,6 +715,7 @@ static void test_bitmap_brush(void)
float opacity; float opacity;
HWND window; HWND window;
HRESULT hr; HRESULT hr;
BOOL match;
static const struct static const struct
{ {
...@@ -833,7 +838,8 @@ static void test_bitmap_brush(void) ...@@ -833,7 +838,8 @@ static void test_bitmap_brush(void)
hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL); hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL);
ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr);
ok(compare_surface(surface, "393636185359a550d459e1e5f0e25411814f724c"), "Surface does not match.\n"); match = compare_surface(surface, "393636185359a550d459e1e5f0e25411814f724c");
ok(match, "Surface does not match.\n");
ID2D1RenderTarget_BeginDraw(rt); ID2D1RenderTarget_BeginDraw(rt);
...@@ -861,7 +867,8 @@ static void test_bitmap_brush(void) ...@@ -861,7 +867,8 @@ static void test_bitmap_brush(void)
hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL); hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL);
ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr);
ok(compare_surface(surface, "b4b775afecdae2d26642001f4faff73663bb8b31"), "Surface does not match.\n"); match = compare_surface(surface, "b4b775afecdae2d26642001f4faff73663bb8b31");
ok(match, "Surface does not match.\n");
ID2D1BitmapBrush_Release(brush); ID2D1BitmapBrush_Release(brush);
refcount = ID2D1Bitmap_Release(bitmap); refcount = ID2D1Bitmap_Release(bitmap);
...@@ -889,6 +896,7 @@ static void test_path_geometry(void) ...@@ -889,6 +896,7 @@ static void test_path_geometry(void)
UINT32 count; UINT32 count;
HWND window; HWND window;
HRESULT hr; HRESULT hr;
BOOL match;
if (!(device = create_device())) if (!(device = create_device()))
{ {
...@@ -1185,7 +1193,8 @@ static void test_path_geometry(void) ...@@ -1185,7 +1193,8 @@ static void test_path_geometry(void)
hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL); hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL);
ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr);
ok(compare_surface(surface, "736d9bf019bcf0be264571c1bd954f07752330ab"), "Surface does not match.\n"); match = compare_surface(surface, "736d9bf019bcf0be264571c1bd954f07752330ab");
ok(match, "Surface does not match.\n");
ID2D1PathGeometry_Release(geometry); ID2D1PathGeometry_Release(geometry);
ID2D1SolidColorBrush_Release(brush); ID2D1SolidColorBrush_Release(brush);
......
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