implement SelectBrushLocal
[reactos.git] / reactos / dll / win32 / gdi32 / misc / historic.c
1 /* $Id: stubs.c 28709 2007-08-31 15:09:51Z greatlrd $
2 *
3 * reactos/lib/gdi32/misc/historic.c
4 *
5 * GDI32.DLL Stubs
6 *
7 * Api that does basic nothing, but is here for backwords compatible with older windows
8 *
9 */
10
11 #include "precomp.h"
12 #include <ddraw.h>
13 #include <ddrawi.h>
14 #include <ddrawint.h>
15 #include <ddrawgdi.h>
16 #include <ntgdi.h>
17
18 /*
19 * @implemented
20 */
21 BOOL
22 STDCALL
23 GdiPlayDCScript(DWORD a0,
24 DWORD a1,
25 DWORD a2,
26 DWORD a3,
27 DWORD a4,
28 DWORD a5)
29 {
30 /* FIXME fix the prototype right */
31 return FALSE;
32 }
33
34 /*
35 * @implemented
36 */
37 BOOL
38 STDCALL
39 GdiPlayJournal(DWORD a0,
40 DWORD a1,
41 DWORD a2,
42 DWORD a3,
43 DWORD a4)
44 {
45 /* FIXME fix the prototype right */
46 return FALSE;
47 }
48
49 /*
50 * @implemented
51 */
52 BOOL
53 STDCALL
54 GdiPlayScript(DWORD a0,
55 DWORD a1,
56 DWORD a2,
57 DWORD a3,
58 DWORD a4,
59 DWORD a5,
60 DWORD a6)
61 {
62 /* FIXME fix the prototype right */
63 return FALSE;
64 }
65
66 /*
67 * @implemented
68 */
69 HBITMAP
70 STDCALL
71 GdiConvertBitmap(HBITMAP hbm)
72 {
73 /* Note Windows 2000/XP/VISTA always returns hbm */
74 return hbm;
75 }
76
77 /*
78 * @implemented
79 */
80 HBRUSH
81 STDCALL
82 GdiConvertBrush(HBRUSH hbr)
83 {
84 /* Note Windows 2000/XP/VISTA always returns hbr */
85 return hbr;
86 }
87
88 /*
89 * @implemented
90 */
91 HDC
92 STDCALL
93 GdiConvertDC(HDC hdc)
94 {
95 /* Note Windows 2000/XP/VISTA always returns hdc */
96 return hdc;
97 }
98
99 /*
100 * @implemented
101 */
102 HFONT
103 STDCALL
104 GdiConvertFont(HFONT hfont)
105 {
106 /* Note Windows 2000/XP/VISTA always returns hfont */
107 return hfont;
108 }
109
110 /*
111 * @implemented
112 */
113 HPALETTE
114 STDCALL
115 GdiConvertPalette(HPALETTE hpal)
116 {
117 /* Note Windows 2000/XP/VISTA always returns hpal */
118 return hpal;
119 }
120
121 /*
122 * @implemented
123 */
124 HRGN
125 STDCALL
126 GdiConvertRegion(HRGN hregion)
127 {
128 /* Note Windows 2000/XP/VISTA always returns hregion */
129 return hregion;
130 }
131
132 /*
133 * @implemented
134 */
135 BOOL
136 STDCALL
137 GdiSetAttrs(HDC hdc)
138 {
139 /* Note Windows 2000/XP/VISTA always returns TRUE */
140 return TRUE;
141 }
142
143 /*
144 * @implemented
145 */
146 BOOL
147 STDCALL
148 GdiDeleteLocalDC(HDC hdc)
149 {
150 /* Note Windows 2000/XP/VISTA always returns TRUE */
151 return TRUE;
152 }
153
154
155 /*
156 * @implemented
157 */
158 VOID
159 STDCALL
160 GdiSetServerAttr(HDC hdc,DWORD attr)
161 {
162 /* it does do nothing */
163 }
164
165
166 /*
167 * @implemented
168 */
169 int
170 STDCALL
171 DeviceCapabilitiesExA(LPCSTR pDevice,
172 LPCSTR pPort,
173 WORD fwCapability,
174 LPSTR pOutput,
175 CONST DEVMODEA *pDevMode)
176 {
177 /* Note Windows 2000/XP/VISTA always returns -1 */
178 return -1;
179 }
180
181 /*
182 * @implemented
183 */
184 int
185 STDCALL
186 DeviceCapabilitiesExW(LPCWSTR pDevice,
187 LPCWSTR pPort,
188 WORD fwCapability,
189 LPWSTR pOutput,
190 CONST DEVMODEW *pDevMode)
191 {
192 /* Note Windows 2000/XP/VISTA always returns -1 */
193 return -1;
194 }
195
196 /*
197 * @implemented
198 */
199 BOOL
200 STDCALL
201 FixBrushOrgEx(HDC hDC,
202 INT nXOrg,
203 INT nYOrg,
204 LPPOINT lpPoint)
205 {
206 /* Note Windows 2000/XP/VISTA always returns FALSE */
207 return FALSE;
208 }
209
210 /*
211 * @implemented
212 *
213 * GDIEntry 16
214 */
215 DWORD
216 WINAPI
217 DdSwapTextureHandles(LPDDRAWI_DIRECTDRAW_LCL pDDraw,
218 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1,
219 LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2)
220 {
221 /* Note Windows 2000/XP/VISTA always returns success */
222 return TRUE;
223 }
224
225 /*
226 * @implemented
227 */
228 BOOL
229 STDCALL
230 GdiReleaseLocalDC(HDC hdc)
231 {
232 /* Note Windows 2000/XP/VISTA always returns TRUE */
233 return TRUE;
234 }
235
236 /*
237 * @implemented
238 */
239 HBRUSH
240 STDCALL
241 SelectBrushLocal(HBRUSH Currenthbm,
242 HBRUSH Newhbm)
243 {
244 return Newhbm;
245 }