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 "precomp.h"
9 
10 void Test_SetWorldTransform()
11 {
12 	HDC hdcScreen, hdc;
13 	XFORM xform;
14 	BOOL result;
15 	//PGDI_TABLE_ENTRY pEntry;
16 	//DC_ATTR* pdcattr;
17 
18 	/* Create a DC */
19 	hdcScreen = GetDC(NULL);
20 	hdc = CreateCompatibleDC(hdcScreen);
21 	ReleaseDC(NULL, hdcScreen);
22 	SetGraphicsMode(hdc, GM_ADVANCED);
23 
24     /* Set identity transform */
25     xform.eM11 = 1;
26     xform.eM12 = 0;
27     xform.eM21 = 0;
28     xform.eM22 = 1;
29     xform.eDx = 0;
30     xform.eDy = 0;
31     result = SetWorldTransform(hdc, &xform);
32     ok(result == 1, "\n");
33 
34     /* Something invalid */
35     xform.eM22 = 0;
36     result = SetWorldTransform(hdc, &xform);
37     ok(result == 0, "\n");
38 
39 	//pEntry = GdiHandleTable + GDI_HANDLE_GET_INDEX(hdc);
40 	//pdcattr = pEntry->UserData;
41 
42 	DeleteDC(hdc);
43 }
44 
45 START_TEST(SetWorldTransform)
46 {
47     Test_SetWorldTransform();
48 }
49 
50