1 /*
2  * COPYRIGHT:            See COPYING in the top level directory
3  * PROJECT:              ReactOS DirectX
4  * FILE:                 dll/directx/ddraw/Surface/surface_stubs.c
5  * PURPOSE:              IDirectDrawSurface7 Implementation
6  * PROGRAMMER:           Magnus Olsen, Maarten Bosma
7  *
8  */
9 
10 #include "rosdraw.h"
11 
12 
13 
14 
15 /* MSDN: "not currently implemented." */
16 HRESULT WINAPI
Main_DDrawSurface_AddOverlayDirtyRect(LPDDRAWI_DDRAWSURFACE_INT iface,LPRECT pRect)17 Main_DDrawSurface_AddOverlayDirtyRect(LPDDRAWI_DDRAWSURFACE_INT iface,
18 					   LPRECT pRect)
19 {
20     DX_WINDBG_trace();
21 
22     DX_STUB;
23 }
24 
25 HRESULT WINAPI
Main_DDrawSurface_BltFast(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dstx,DWORD dsty,LPDDRAWI_DDRAWSURFACE_INT src,LPRECT rsrc,DWORD trans)26 Main_DDrawSurface_BltFast(LPDDRAWI_DDRAWSURFACE_INT iface, DWORD dstx,
27 			      DWORD dsty, LPDDRAWI_DDRAWSURFACE_INT src,
28 			      LPRECT rsrc, DWORD trans)
29 {
30     DX_WINDBG_trace();
31 
32     DX_STUB;
33 }
34 
35 HRESULT WINAPI
Main_DDrawSurface_Restore(LPDDRAWI_DDRAWSURFACE_INT iface)36 Main_DDrawSurface_Restore(LPDDRAWI_DDRAWSURFACE_INT iface)
37 {
38     DX_WINDBG_trace();
39 
40     DX_STUB;
41 }
42 
43 /* MSDN: "not currently implemented." */
44 HRESULT WINAPI
Main_DDrawSurface_BltBatch(LPDDRAWI_DDRAWSURFACE_INT iface,LPDDBLTBATCH pBatch,DWORD dwCount,DWORD dwFlags)45 Main_DDrawSurface_BltBatch(LPDDRAWI_DDRAWSURFACE_INT iface,
46 				LPDDBLTBATCH pBatch, DWORD dwCount,
47 				DWORD dwFlags)
48 {
49     DX_WINDBG_trace();
50 
51     DX_STUB;
52 }
53 
54 HRESULT WINAPI
Main_DDrawSurface_ChangeUniquenessValue(LPDDRAWI_DDRAWSURFACE_INT iface)55 Main_DDrawSurface_ChangeUniquenessValue(LPDDRAWI_DDRAWSURFACE_INT iface)
56 {
57     DX_WINDBG_trace();
58 
59     DX_STUB;
60 }
61 
62 HRESULT WINAPI
Main_DDrawSurface_DeleteAttachedSurface(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwFlags,LPDDRAWI_DDRAWSURFACE_INT pAttach)63 Main_DDrawSurface_DeleteAttachedSurface(LPDDRAWI_DDRAWSURFACE_INT iface,
64 					     DWORD dwFlags,
65 					     LPDDRAWI_DDRAWSURFACE_INT pAttach)
66 {
67     DX_WINDBG_trace();
68 
69     DX_STUB;
70 }
71 
72 HRESULT WINAPI
Main_DDrawSurface_EnumAttachedSurfaces(LPDDRAWI_DDRAWSURFACE_INT iface,LPVOID context,LPDDENUMSURFACESCALLBACK7 cb)73 Main_DDrawSurface_EnumAttachedSurfaces(LPDDRAWI_DDRAWSURFACE_INT iface,
74 					    LPVOID context,
75 					    LPDDENUMSURFACESCALLBACK7 cb)
76 {
77 	DX_WINDBG_trace();
78 
79 	DX_STUB;
80 }
81 
82 HRESULT WINAPI
Main_DDrawSurface_EnumOverlayZOrders(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwFlags,LPVOID context,LPDDENUMSURFACESCALLBACK7 cb)83 Main_DDrawSurface_EnumOverlayZOrders(LPDDRAWI_DDRAWSURFACE_INT iface,
84 					  DWORD dwFlags, LPVOID context,
85 					  LPDDENUMSURFACESCALLBACK7 cb)
86 {
87     DX_WINDBG_trace();
88 
89     DX_STUB;
90 }
91 
92 HRESULT WINAPI
Main_DDrawSurface_Flip(LPDDRAWI_DDRAWSURFACE_INT iface,LPDDRAWI_DDRAWSURFACE_INT lpDDSurfaceTargetOverride,DWORD dwFlags)93 Main_DDrawSurface_Flip(LPDDRAWI_DDRAWSURFACE_INT iface,
94 			    LPDDRAWI_DDRAWSURFACE_INT lpDDSurfaceTargetOverride, DWORD dwFlags)
95 {
96     DX_WINDBG_trace();
97 
98     DX_STUB;
99 }
100 
101 HRESULT WINAPI
Main_DDrawSurface_FreePrivateData(LPDDRAWI_DDRAWSURFACE_INT iface,REFGUID tag)102 Main_DDrawSurface_FreePrivateData(LPDDRAWI_DDRAWSURFACE_INT iface, REFGUID tag)
103 {
104     DX_WINDBG_trace();
105 
106     DX_STUB;
107 }
108 HRESULT WINAPI
Main_DDrawSurface_GetColorKey(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwFlags,LPDDCOLORKEY pCKey)109 Main_DDrawSurface_GetColorKey(LPDDRAWI_DDRAWSURFACE_INT iface, DWORD dwFlags,
110 				   LPDDCOLORKEY pCKey)
111 {
112     //LPDDRAWI_DDRAWSURFACE_INT This = (LPDDRAWI_DDRAWSURFACE_INT)iface;
113 
114 	DX_WINDBG_trace();
115 
116     DX_STUB;
117 }
118 
119 HRESULT WINAPI
Main_DDrawSurface_GetDDInterface(LPDDRAWI_DDRAWSURFACE_INT iface,LPVOID * pDD)120 Main_DDrawSurface_GetDDInterface(LPDDRAWI_DDRAWSURFACE_INT iface, LPVOID* pDD)
121 {
122     DX_WINDBG_trace();
123 
124     DX_STUB;
125 }
126 HRESULT WINAPI
Main_DDrawSurface_GetFlipStatus(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwFlags)127 Main_DDrawSurface_GetFlipStatus(LPDDRAWI_DDRAWSURFACE_INT iface, DWORD dwFlags)
128 {
129     DX_WINDBG_trace();
130 
131     DX_STUB;
132 }
133 
134 HRESULT WINAPI
Main_DDrawSurface_GetLOD(LPDDRAWI_DDRAWSURFACE_INT iface,LPDWORD pdwMaxLOD)135 Main_DDrawSurface_GetLOD(LPDDRAWI_DDRAWSURFACE_INT iface, LPDWORD pdwMaxLOD)
136 {
137     DX_WINDBG_trace();
138 
139     DX_STUB;
140 }
141 
142 HRESULT WINAPI
Main_DDrawSurface_GetOverlayPosition(LPDDRAWI_DDRAWSURFACE_INT iface,LPLONG pX,LPLONG pY)143 Main_DDrawSurface_GetOverlayPosition(LPDDRAWI_DDRAWSURFACE_INT iface,
144 					  LPLONG pX, LPLONG pY)
145 {
146     DX_WINDBG_trace();
147 
148     DX_STUB;
149 }
150 HRESULT WINAPI
Main_DDrawSurface_GetPalette(LPDDRAWI_DDRAWSURFACE_INT iface,LPDIRECTDRAWPALETTE * ppPalette)151 Main_DDrawSurface_GetPalette(LPDDRAWI_DDRAWSURFACE_INT iface,
152 				  LPDIRECTDRAWPALETTE* ppPalette)
153 {
154     DX_WINDBG_trace();
155 
156     DX_STUB;
157 }
158 
159 HRESULT WINAPI
Main_DDrawSurface_GetPriority(LPDDRAWI_DDRAWSURFACE_INT iface,LPDWORD pdwPriority)160 Main_DDrawSurface_GetPriority(LPDDRAWI_DDRAWSURFACE_INT iface,
161 				   LPDWORD pdwPriority)
162 {
163     DX_WINDBG_trace();
164 
165     DX_STUB;
166 }
167 
168 HRESULT WINAPI
Main_DDrawSurface_GetPrivateData(LPDDRAWI_DDRAWSURFACE_INT iface,REFGUID tag,LPVOID pBuffer,LPDWORD pcbBufferSize)169 Main_DDrawSurface_GetPrivateData(LPDDRAWI_DDRAWSURFACE_INT iface,
170 				      REFGUID tag, LPVOID pBuffer,
171 				      LPDWORD pcbBufferSize)
172 {
173     DX_WINDBG_trace();
174 
175     DX_STUB;
176 }
177 
178 HRESULT WINAPI
Main_DDrawSurface_GetUniquenessValue(LPDDRAWI_DDRAWSURFACE_INT iface,LPDWORD pValue)179 Main_DDrawSurface_GetUniquenessValue(LPDDRAWI_DDRAWSURFACE_INT iface,
180 					  LPDWORD pValue)
181 {
182     DX_WINDBG_trace();
183 
184     DX_STUB;
185 }
186 
187 HRESULT WINAPI
Main_DDrawSurface_IsLost(LPDDRAWI_DDRAWSURFACE_INT iface)188 Main_DDrawSurface_IsLost(LPDDRAWI_DDRAWSURFACE_INT iface)
189 {
190     DX_WINDBG_trace();
191 
192     //DX_STUB;
193     DX_STUB_str("not implement return not lost\n");
194     return DD_OK;
195 }
196 
197 HRESULT WINAPI
Main_DDrawSurface_PageLock(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwFlags)198 Main_DDrawSurface_PageLock(LPDDRAWI_DDRAWSURFACE_INT iface, DWORD dwFlags)
199 {
200     DX_WINDBG_trace();
201 
202     DX_STUB;
203 }
204 
205 HRESULT WINAPI
Main_DDrawSurface_PageUnlock(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwFlags)206 Main_DDrawSurface_PageUnlock(LPDDRAWI_DDRAWSURFACE_INT iface, DWORD dwFlags)
207 {
208     DX_WINDBG_trace();
209 
210     DX_STUB;
211 }
212 
213 HRESULT WINAPI
Main_DDrawSurface_SetPalette(LPDDRAWI_DDRAWSURFACE_INT iface,LPDIRECTDRAWPALETTE pPalette)214 Main_DDrawSurface_SetPalette (LPDDRAWI_DDRAWSURFACE_INT iface,
215 				  LPDIRECTDRAWPALETTE pPalette)
216 {
217     DX_WINDBG_trace();
218 
219     DX_STUB;
220 }
221 
222 HRESULT WINAPI
Main_DDrawSurface_SetPriority(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwPriority)223 Main_DDrawSurface_SetPriority (LPDDRAWI_DDRAWSURFACE_INT iface,
224 				   DWORD dwPriority)
225 {
226     DX_WINDBG_trace();
227 
228     DX_STUB;
229 }
230 
231 HRESULT WINAPI
Main_DDrawSurface_SetPrivateData(LPDDRAWI_DDRAWSURFACE_INT iface,REFGUID tag,LPVOID pData,DWORD cbSize,DWORD dwFlags)232 Main_DDrawSurface_SetPrivateData (LPDDRAWI_DDRAWSURFACE_INT iface,
233 				      REFGUID tag, LPVOID pData,
234 				      DWORD cbSize, DWORD dwFlags)
235 {
236     DX_WINDBG_trace();
237 
238     DX_STUB;
239 }
240 
241 HRESULT WINAPI
Main_DDrawSurface_UpdateOverlay(LPDDRAWI_DDRAWSURFACE_INT iface,LPRECT pSrcRect,LPDDRAWI_DDRAWSURFACE_INT pDstSurface,LPRECT pDstRect,DWORD dwFlags,LPDDOVERLAYFX pFX)242 Main_DDrawSurface_UpdateOverlay (LPDDRAWI_DDRAWSURFACE_INT iface,
243 				     LPRECT pSrcRect,
244 				     LPDDRAWI_DDRAWSURFACE_INT pDstSurface,
245 				     LPRECT pDstRect, DWORD dwFlags,
246 				     LPDDOVERLAYFX pFX)
247 {
248     DX_WINDBG_trace();
249 
250     DX_STUB;
251 }
252 
253 
254 /* MSDN: "not currently implemented." */
255 HRESULT WINAPI
Main_DDrawSurface_UpdateOverlayDisplay(LPDDRAWI_DDRAWSURFACE_INT This,DWORD dwFlags)256 Main_DDrawSurface_UpdateOverlayDisplay (LPDDRAWI_DDRAWSURFACE_INT This,
257 					    DWORD dwFlags)
258 {
259 
260 	DX_WINDBG_trace();
261 
262 	if (!(This->lpLcl->lpGbl->lpDD->lpDDCBtmp->cbDDSurfaceCallbacks.dwFlags & DDHAL_SURFCB32_UPDATEOVERLAY))
263 	{
264 		return DDERR_GENERIC;
265 	}
266 
267 	DX_STUB;
268 }
269 
270 
Main_DDrawSurface_UpdateOverlayZOrder(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD dwFlags,LPDDRAWI_DDRAWSURFACE_INT pDDSRef)271 HRESULT WINAPI Main_DDrawSurface_UpdateOverlayZOrder (LPDDRAWI_DDRAWSURFACE_INT iface,
272 					   DWORD dwFlags, LPDDRAWI_DDRAWSURFACE_INT pDDSRef)
273 {
274     DX_WINDBG_trace();
275 
276     DX_STUB;
277 }
278 
279 HRESULT WINAPI
Main_DDrawSurface_SetSurfaceDesc(LPDDRAWI_DDRAWSURFACE_INT iface,DDSURFACEDESC2 * DDSD,DWORD Flags)280 Main_DDrawSurface_SetSurfaceDesc(LPDDRAWI_DDRAWSURFACE_INT iface, DDSURFACEDESC2 *DDSD, DWORD Flags)
281 {
282 	DX_WINDBG_trace();
283 
284     DX_STUB;
285 }
286 
287 HRESULT WINAPI
Main_DDrawSurface_SetLOD(LPDDRAWI_DDRAWSURFACE_INT iface,DWORD MaxLOD)288 Main_DDrawSurface_SetLOD(LPDDRAWI_DDRAWSURFACE_INT iface, DWORD MaxLOD)
289 {
290 	DX_WINDBG_trace();
291 
292     DX_STUB;
293 }
294 
295 
296