Disable some misleading service tests because a test cannot determine wheter or not...
[reactos.git] / rostests / apitests / gdi32 / SetWorldTransform.c
1 /*
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for SetWorldTransform
5 * PROGRAMMERS: Timo Kreuzer
6 */
7
8 #include <stdio.h>
9 #include <wine/test.h>
10 #include <windows.h>
11
12 void Test_SetWorldTransform()
13 {
14 HDC hdcScreen, hdc;
15 XFORM xform;
16 BOOL result;
17 //PGDI_TABLE_ENTRY pEntry;
18 //DC_ATTR* pdcattr;
19
20 /* Create a DC */
21 hdcScreen = GetDC(NULL);
22 hdc = CreateCompatibleDC(hdcScreen);
23 ReleaseDC(NULL, hdcScreen);
24 SetGraphicsMode(hdc, GM_ADVANCED);
25
26 /* Set identity transform */
27 xform.eM11 = 1;
28 xform.eM12 = 0;
29 xform.eM21 = 0;
30 xform.eM22 = 1;
31 xform.eDx = 0;
32 xform.eDy = 0;
33 result = SetWorldTransform(hdc, &xform);
34 ok(result == 1, "\n");
35
36 /* Something invalid */
37 xform.eM22 = 0;
38 result = SetWorldTransform(hdc, &xform);
39 ok(result == 0, "\n");
40
41 //pEntry = GdiHandleTable + GDI_HANDLE_GET_INDEX(hdc);
42 //pdcattr = pEntry->UserData;
43
44 DeleteDC(hdc);
45 }
46
47 START_TEST(SetWorldTransform)
48 {
49 Test_SetWorldTransform();
50 }
51