forget commit Implement of GdiGetLocalBrush, GdiGetLocalDC, GdiGetLocalFont
[reactos.git] / reactos / dll / win32 / gdi32 / misc / hacks.c
1 #include "precomp.h"
2
3 /* $Id: stubs.c 28709 2007-08-31 15:09:51Z greatlrd $
4 *
5 * reactos/lib/gdi32/misc/hacks.c
6 *
7 * GDI32.DLL hacks
8 *
9 * Api that are hacked but we can not do correct implemtions yetm but using own syscall
10 *
11 */
12
13 /*
14 * @implemented
15 *
16 */
17 int
18 STDCALL
19 GetPolyFillMode(HDC hdc)
20 {
21 /* FIXME do not use reactos own syscall for this,
22 * this hack need be remove
23 */
24 return NtGdiGetPolyFillMode(hdc);
25 }
26
27
28 /*
29 * @implemented
30 *
31 */
32 int
33 STDCALL
34 GetGraphicsMode(HDC hdc)
35 {
36 /* FIXME do not use reactos own syscall for this,
37 * this hack need be remove
38 */
39 return NtGdiGetGraphicsMode(hdc);
40 }
41
42 /*
43 * @implemented
44 *
45 */
46 int
47 STDCALL
48 GetROP2(HDC hdc)
49 {
50 /* FIXME do not use reactos own syscall for this,
51 * this hack need be remove
52 */
53 return NtGdiGetROP2(hdc);
54 }
55
56
57 /*
58 * @implemented
59 *
60 */
61 INT
62 STDCALL
63 SetDIBitsToDevice(
64 HDC hDC,
65 int XDest,
66 int YDest,
67 DWORD Width,
68 DWORD Height,
69 int XSrc,
70 int YSrc,
71 UINT StartScan,
72 UINT ScanLines,
73 CONST VOID *Bits,
74 CONST BITMAPINFO *lpbmi,
75 UINT ColorUse)
76 {
77 return NtGdiSetDIBitsToDeviceInternal(hDC,
78 XDest,
79 YDest,
80 Width,
81 Height,
82 XSrc,
83 YSrc,
84 StartScan,
85 ScanLines,
86 (LPBYTE)Bits,
87 (LPBITMAPINFO)lpbmi,
88 ColorUse,
89 lpbmi->bmiHeader.biSizeImage,
90 lpbmi->bmiHeader.biSize,
91 FALSE,
92 NULL);
93 }
94
95 /*
96 * @implemented
97 *
98 */
99 int
100 STDCALL
101 SetBkMode(HDC hdc,
102 int iBkMode)
103 {
104 return NtGdiSetBkMode(hdc,iBkMode);
105 }
106
107 /*
108 * @implemented
109 *
110 */
111 HGDIOBJ
112 STDCALL
113 SelectObject(HDC hdc,
114 HGDIOBJ hgdiobj)
115 {
116 return NtGdiSelectObject(hdc,hgdiobj);
117 }
118
119
120 /*
121 * @implemented
122 *
123 */
124 int
125 STDCALL
126 GetMapMode(HDC hdc)
127 {
128 return NtGdiGetMapMode(hdc);
129 }
130
131 /*
132 * @implemented
133 *
134 */
135 int
136 STDCALL
137 GetStretchBltMode(HDC hdc)
138 {
139 return NtGdiGetStretchBltMode(hdc);
140 }
141
142 /*
143 * @implemented
144 *
145 */
146 UINT
147 STDCALL
148 GetTextAlign(HDC hdc)
149 {
150 return NtGdiGetTextAlign(hdc);
151 }
152
153
154 /*
155 * @implemented
156 *
157 */
158 COLORREF
159 STDCALL
160 GetTextColor(HDC hdc)
161 {
162 return NtGdiGetTextColor(hdc);
163 }
164
165 /*
166 * @implemented
167 *
168 */
169 BOOL
170 STDCALL
171 MoveToEx(HDC hdc,
172 int X,
173 int Y,
174 LPPOINT lpPoint)
175 {
176 return NtGdiMoveToEx(hdc, X, Y, lpPoint);
177 }
178
179 /*
180 * @implemented
181 *
182 */
183 BOOL
184 STDCALL
185 OffsetViewportOrgEx(HDC hdc,
186 int nXOffset,
187 int nYOffset,
188 LPPOINT lpPoint)
189 {
190 return NtGdiOffsetViewportOrgEx(hdc, nXOffset, nYOffset, lpPoint);
191 }
192
193 /*
194 * @implemented
195 *
196 */
197 BOOL
198 STDCALL
199 OffsetWindowOrgEx(HDC hdc,
200 int nXOffset,
201 int nYOffset,
202 LPPOINT lpPoint)
203 {
204 return NtGdiOffsetWindowOrgEx(hdc, nXOffset, nYOffset, lpPoint);
205 }
206
207
208