2 * Copyright 2006 Stefan Dösinger
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_DLLS_DDRAW_DDRAW_PRIVATE_H
20 #define __WINE_DLLS_DDRAW_DDRAW_PRIVATE_H
23 #include <wine/port.h>
29 #define COM_NO_WINDOWS_H
32 #define NONAMELESSSTRUCT
33 #define NONAMELESSUNION
41 #include <wine/debug.h>
42 #include <wine/list.h>
43 #include <wine/wined3d.h>
45 WINE_DEFAULT_DEBUG_CHANNEL(ddraw
);
47 extern const struct wined3d_parent_ops ddraw_null_wined3d_parent_ops DECLSPEC_HIDDEN
;
48 extern DWORD force_refresh_rate DECLSPEC_HIDDEN
;
50 /*****************************************************************************
51 * IDirectDraw implementation structure
52 *****************************************************************************/
56 struct wined3d_vertex_declaration
*decl
;
59 #define DDRAW_INITIALIZED 0x00000001
60 #define DDRAW_D3D_INITIALIZED 0x00000002
61 #define DDRAW_RESTORE_MODE 0x00000004
62 #define DDRAW_NO3D 0x00000008
63 #define DDRAW_SCL_DDRAW1 0x00000010
65 #define DDRAW_STRIDE_ALIGNMENT 8
70 IDirectDraw7 IDirectDraw7_iface
;
71 IDirectDraw4 IDirectDraw4_iface
;
72 IDirectDraw2 IDirectDraw2_iface
;
73 IDirectDraw IDirectDraw_iface
;
74 IDirect3D7 IDirect3D7_iface
;
75 IDirect3D3 IDirect3D3_iface
;
76 IDirect3D2 IDirect3D2_iface
;
77 IDirect3D IDirect3D_iface
;
78 struct wined3d_device_parent device_parent
;
80 /* See comment in IDirectDraw::AddRef */
81 LONG ref7
, ref4
, ref2
, ref3
, ref1
, numIfaces
;
83 struct wined3d
*wined3d
;
84 struct wined3d_device
*wined3d_device
;
87 struct ddraw_surface
*primary
;
89 struct wined3d_surface
*wined3d_frontbuffer
;
90 struct wined3d_swapchain
*wined3d_swapchain
;
91 HWND swapchain_window
;
93 /* DirectDraw things, which are not handled by WineD3D */
94 DWORD cooperative_level
;
98 struct d3d_device
*d3ddevice
;
106 /* For the dll unload cleanup code */
107 struct list ddraw_list_entry
;
108 /* The surface list - can't relay this to WineD3D
111 struct list surface_list
;
114 struct FvfToDecl
*decls
;
115 UINT numConvertedDecls
, declArraySize
;
118 #define DDRAW_WINDOW_CLASS_NAME "DirectDrawDeviceWnd"
120 HRESULT
ddraw_init(struct ddraw
*ddraw
, enum wined3d_device_type device_type
) DECLSPEC_HIDDEN
;
121 void ddraw_destroy_swapchain(struct ddraw
*ddraw
) DECLSPEC_HIDDEN
;
123 static inline void ddraw_set_swapchain_window(struct ddraw
*ddraw
, HWND window
)
125 if (window
== GetDesktopWindow())
127 ddraw
->swapchain_window
= window
;
130 /* Utility functions */
131 void DDRAW_Convert_DDSCAPS_1_To_2(const DDSCAPS
*pIn
, DDSCAPS2
*pOut
) DECLSPEC_HIDDEN
;
132 void DDRAW_Convert_DDDEVICEIDENTIFIER_2_To_1(const DDDEVICEIDENTIFIER2
*pIn
, DDDEVICEIDENTIFIER
*pOut
) DECLSPEC_HIDDEN
;
133 struct wined3d_vertex_declaration
*ddraw_find_decl(struct ddraw
*ddraw
, DWORD fvf
) DECLSPEC_HIDDEN
;
137 /* IUnknown fields */
138 IDirectDrawSurface7 IDirectDrawSurface7_iface
;
139 IDirectDrawSurface4 IDirectDrawSurface4_iface
;
140 IDirectDrawSurface3 IDirectDrawSurface3_iface
;
141 IDirectDrawSurface2 IDirectDrawSurface2_iface
;
142 IDirectDrawSurface IDirectDrawSurface_iface
;
143 IDirectDrawGammaControl IDirectDrawGammaControl_iface
;
144 IDirect3DTexture2 IDirect3DTexture2_iface
;
145 IDirect3DTexture IDirect3DTexture_iface
;
147 LONG ref7
, ref4
, ref3
, ref2
, ref1
, iface_count
, gamma_count
;
148 IUnknown
*ifaceToRelease
;
149 IUnknown
*texture_outer
;
153 /* Connections to other Objects */
155 struct wined3d_surface
*wined3d_surface
;
156 struct wined3d_texture
*wined3d_texture
;
157 struct d3d_device
*device1
;
159 /* This implementation handles attaching surfaces to other surfaces */
160 struct ddraw_surface
*next_attached
;
161 struct ddraw_surface
*first_attached
;
162 IUnknown
*attached_iface
;
164 /* Complex surfaces are organized in a tree, although the tree is degenerated to a list in most cases.
165 * In mipmap and primary surfaces each level has only one attachment, which is the next surface level.
166 * Only the cube texture root has 6 surfaces attached, which then have a normal mipmap chain attached
167 * to them. So hardcode the array to 6, a dynamic array or a list would be an overkill.
169 #define MAX_COMPLEX_ATTACHED 6
170 struct ddraw_surface
*complex_array
[MAX_COMPLEX_ATTACHED
];
171 /* You can't traverse the tree upwards. Only a flag for Surface::Release because its needed there,
172 * but no pointer to prevent temptations to traverse it in the wrong direction.
174 BOOL is_complex_root
;
176 /* Surface description, for GetAttachedSurface */
177 DDSURFACEDESC2 surface_desc
;
180 DWORD uniqueness_value
;
183 /* Clipper objects */
184 struct ddraw_clipper
*clipper
;
186 /* For the ddraw surface list */
187 struct list surface_list_entry
;
192 HRESULT
ddraw_surface_create_texture(struct ddraw_surface
*surface
, DWORD surface_flags
) DECLSPEC_HIDDEN
;
193 HRESULT
ddraw_surface_init(struct ddraw_surface
*surface
, struct ddraw
*ddraw
,
194 DDSURFACEDESC2
*desc
, DWORD flags
, UINT version
) DECLSPEC_HIDDEN
;
195 ULONG
ddraw_surface_release_iface(struct ddraw_surface
*This
) DECLSPEC_HIDDEN
;
197 static inline struct ddraw_surface
*impl_from_IDirect3DTexture(IDirect3DTexture
*iface
)
199 return CONTAINING_RECORD(iface
, struct ddraw_surface
, IDirect3DTexture_iface
);
202 static inline struct ddraw_surface
*impl_from_IDirect3DTexture2(IDirect3DTexture2
*iface
)
204 return CONTAINING_RECORD(iface
, struct ddraw_surface
, IDirect3DTexture2_iface
);
207 static inline struct ddraw_surface
*impl_from_IDirectDrawSurface(IDirectDrawSurface
*iface
)
209 return CONTAINING_RECORD(iface
, struct ddraw_surface
, IDirectDrawSurface_iface
);
212 static inline struct ddraw_surface
*impl_from_IDirectDrawSurface2(IDirectDrawSurface2
*iface
)
214 return CONTAINING_RECORD(iface
, struct ddraw_surface
, IDirectDrawSurface2_iface
);
217 static inline struct ddraw_surface
*impl_from_IDirectDrawSurface3(IDirectDrawSurface3
*iface
)
219 return CONTAINING_RECORD(iface
, struct ddraw_surface
, IDirectDrawSurface3_iface
);
222 static inline struct ddraw_surface
*impl_from_IDirectDrawSurface4(IDirectDrawSurface4
*iface
)
224 return CONTAINING_RECORD(iface
, struct ddraw_surface
, IDirectDrawSurface4_iface
);
227 static inline struct ddraw_surface
*impl_from_IDirectDrawSurface7(IDirectDrawSurface7
*iface
)
229 return CONTAINING_RECORD(iface
, struct ddraw_surface
, IDirectDrawSurface7_iface
);
232 struct ddraw_surface
*unsafe_impl_from_IDirectDrawSurface(IDirectDrawSurface
*iface
) DECLSPEC_HIDDEN
;
233 struct ddraw_surface
*unsafe_impl_from_IDirectDrawSurface4(IDirectDrawSurface4
*iface
) DECLSPEC_HIDDEN
;
234 struct ddraw_surface
*unsafe_impl_from_IDirectDrawSurface7(IDirectDrawSurface7
*iface
) DECLSPEC_HIDDEN
;
236 struct ddraw_surface
*unsafe_impl_from_IDirect3DTexture(IDirect3DTexture
*iface
) DECLSPEC_HIDDEN
;
237 struct ddraw_surface
*unsafe_impl_from_IDirect3DTexture2(IDirect3DTexture2
*iface
) DECLSPEC_HIDDEN
;
239 #define DDRAW_INVALID_HANDLE ~0U
241 enum ddraw_handle_type
244 DDRAW_HANDLE_MATERIAL
,
246 DDRAW_HANDLE_STATEBLOCK
,
247 DDRAW_HANDLE_SURFACE
,
250 struct ddraw_handle_entry
253 enum ddraw_handle_type type
;
256 struct ddraw_handle_table
258 struct ddraw_handle_entry
*entries
;
259 struct ddraw_handle_entry
*free_entries
;
264 BOOL
ddraw_handle_table_init(struct ddraw_handle_table
*t
, UINT initial_size
) DECLSPEC_HIDDEN
;
265 void ddraw_handle_table_destroy(struct ddraw_handle_table
*t
) DECLSPEC_HIDDEN
;
266 DWORD
ddraw_allocate_handle(struct ddraw_handle_table
*t
, void *object
, enum ddraw_handle_type type
) DECLSPEC_HIDDEN
;
267 void *ddraw_free_handle(struct ddraw_handle_table
*t
, DWORD handle
, enum ddraw_handle_type type
) DECLSPEC_HIDDEN
;
268 void *ddraw_get_object(struct ddraw_handle_table
*t
, DWORD handle
, enum ddraw_handle_type type
) DECLSPEC_HIDDEN
;
273 IDirect3DDevice7 IDirect3DDevice7_iface
;
274 IDirect3DDevice3 IDirect3DDevice3_iface
;
275 IDirect3DDevice2 IDirect3DDevice2_iface
;
276 IDirect3DDevice IDirect3DDevice_iface
;
277 IUnknown IUnknown_inner
;
281 IUnknown
*outer_unknown
;
282 struct wined3d_device
*wined3d_device
;
284 struct ddraw_surface
*target
;
286 struct wined3d_buffer
*index_buffer
;
287 UINT index_buffer_size
;
288 UINT index_buffer_pos
;
290 struct wined3d_buffer
*vertex_buffer
;
291 UINT vertex_buffer_size
;
292 UINT vertex_buffer_pos
;
294 /* Viewport management */
295 struct list viewport_list
;
296 struct d3d_viewport
*current_viewport
;
297 D3DVIEWPORT7 active_viewport
;
299 /* Required to keep track which of two available texture blending modes in d3ddevice3 is used */
300 BOOL legacyTextureBlending
;
302 D3DMATRIX legacy_projection
;
303 D3DMATRIX legacy_clipspace
;
308 /* Rendering functions to wrap D3D(1-3) to D3D7 */
309 D3DPRIMITIVETYPE primitive_type
;
313 LPBYTE sysmem_vertex_buffer
;
317 /* Handle management */
318 struct ddraw_handle_table handle_table
;
319 D3DMATRIXHANDLE world
, proj
, view
;
322 HRESULT
d3d_device_create(struct ddraw
*ddraw
, struct ddraw_surface
*target
,
323 UINT version
, struct d3d_device
**device
, IUnknown
*outer_unknown
) DECLSPEC_HIDDEN
;
324 enum wined3d_depth_buffer_type
d3d_device_update_depth_stencil(struct d3d_device
*device
) DECLSPEC_HIDDEN
;
327 extern const GUID IID_D3DDEVICE_WineD3D DECLSPEC_HIDDEN
;
329 /* Helper functions */
330 HRESULT
IDirect3DImpl_GetCaps(const struct wined3d
*wined3d
,
331 D3DDEVICEDESC
*Desc123
, D3DDEVICEDESC7
*Desc7
) DECLSPEC_HIDDEN
;
333 static inline struct d3d_device
*impl_from_IDirect3DDevice(IDirect3DDevice
*iface
)
335 return CONTAINING_RECORD(iface
, struct d3d_device
, IDirect3DDevice_iface
);
338 static inline struct d3d_device
*impl_from_IDirect3DDevice2(IDirect3DDevice2
*iface
)
340 return CONTAINING_RECORD(iface
, struct d3d_device
, IDirect3DDevice2_iface
);
343 static inline struct d3d_device
*impl_from_IDirect3DDevice3(IDirect3DDevice3
*iface
)
345 return CONTAINING_RECORD(iface
, struct d3d_device
, IDirect3DDevice3_iface
);
348 static inline struct d3d_device
*impl_from_IDirect3DDevice7(IDirect3DDevice7
*iface
)
350 return CONTAINING_RECORD(iface
, struct d3d_device
, IDirect3DDevice7_iface
);
353 struct d3d_device
*unsafe_impl_from_IDirect3DDevice(IDirect3DDevice
*iface
) DECLSPEC_HIDDEN
;
354 struct d3d_device
*unsafe_impl_from_IDirect3DDevice2(IDirect3DDevice2
*iface
) DECLSPEC_HIDDEN
;
355 struct d3d_device
*unsafe_impl_from_IDirect3DDevice3(IDirect3DDevice3
*iface
) DECLSPEC_HIDDEN
;
356 struct d3d_device
*unsafe_impl_from_IDirect3DDevice7(IDirect3DDevice7
*iface
) DECLSPEC_HIDDEN
;
360 IDirectDrawClipper IDirectDrawClipper_iface
;
367 HRESULT
ddraw_clipper_init(struct ddraw_clipper
*clipper
) DECLSPEC_HIDDEN
;
368 struct ddraw_clipper
*unsafe_impl_from_IDirectDrawClipper(IDirectDrawClipper
*iface
) DECLSPEC_HIDDEN
;
370 /*****************************************************************************
371 * IDirectDrawPalette implementation structure
372 *****************************************************************************/
375 /* IUnknown fields */
376 IDirectDrawPalette IDirectDrawPalette_iface
;
379 struct wined3d_palette
*wineD3DPalette
;
381 /* IDirectDrawPalette fields */
382 IUnknown
*ifaceToRelease
;
385 static inline struct ddraw_palette
*impl_from_IDirectDrawPalette(IDirectDrawPalette
*iface
)
387 return CONTAINING_RECORD(iface
, struct ddraw_palette
, IDirectDrawPalette_iface
);
390 struct ddraw_palette
*unsafe_impl_from_IDirectDrawPalette(IDirectDrawPalette
*iface
) DECLSPEC_HIDDEN
;
392 HRESULT
ddraw_palette_init(struct ddraw_palette
*palette
,
393 struct ddraw
*ddraw
, DWORD flags
, PALETTEENTRY
*entries
) DECLSPEC_HIDDEN
;
395 /* Helper structures */
396 struct object_creation_info
399 HRESULT (*pfnCreateInstance
)(IUnknown
*pUnkOuter
, REFIID riid
,
403 /******************************************************************************
404 * IDirect3DLight implementation structure - Wraps to D3D7
405 ******************************************************************************/
408 IDirect3DLight IDirect3DLight_iface
;
411 /* IDirect3DLight fields */
414 /* If this light is active for one viewport, put the viewport here */
415 struct d3d_viewport
*active_viewport
;
425 /* Helper functions */
426 void light_activate(struct d3d_light
*light
) DECLSPEC_HIDDEN
;
427 void light_deactivate(struct d3d_light
*light
) DECLSPEC_HIDDEN
;
428 void d3d_light_init(struct d3d_light
*light
, struct ddraw
*ddraw
) DECLSPEC_HIDDEN
;
429 struct d3d_light
*unsafe_impl_from_IDirect3DLight(IDirect3DLight
*iface
) DECLSPEC_HIDDEN
;
431 /******************************************************************************
432 * IDirect3DMaterial implementation structure - Wraps to D3D7
433 ******************************************************************************/
436 IDirect3DMaterial3 IDirect3DMaterial3_iface
;
437 IDirect3DMaterial2 IDirect3DMaterial2_iface
;
438 IDirect3DMaterial IDirect3DMaterial_iface
;
441 /* IDirect3DMaterial2 fields */
443 struct d3d_device
*active_device
;
449 /* Helper functions */
450 void material_activate(struct d3d_material
*material
) DECLSPEC_HIDDEN
;
451 struct d3d_material
*d3d_material_create(struct ddraw
*ddraw
) DECLSPEC_HIDDEN
;
453 /*****************************************************************************
454 * IDirect3DViewport - Wraps to D3D7
455 *****************************************************************************/
458 IDirect3DViewport3 IDirect3DViewport3_iface
;
461 /* IDirect3DViewport fields */
464 /* If this viewport is active for one device, put the device here */
465 struct d3d_device
*active_device
;
479 struct list light_list
;
480 struct d3d_material
*background
;
483 struct d3d_viewport
*unsafe_impl_from_IDirect3DViewport3(IDirect3DViewport3
*iface
) DECLSPEC_HIDDEN
;
484 struct d3d_viewport
*unsafe_impl_from_IDirect3DViewport2(IDirect3DViewport2
*iface
) DECLSPEC_HIDDEN
;
485 struct d3d_viewport
*unsafe_impl_from_IDirect3DViewport(IDirect3DViewport
*iface
) DECLSPEC_HIDDEN
;
487 /* Helper functions */
488 void viewport_activate(struct d3d_viewport
*viewport
, BOOL ignore_lights
) DECLSPEC_HIDDEN
;
489 void d3d_viewport_init(struct d3d_viewport
*viewport
, struct ddraw
*ddraw
) DECLSPEC_HIDDEN
;
491 /*****************************************************************************
492 * IDirect3DExecuteBuffer - Wraps to D3D7
493 *****************************************************************************/
494 struct d3d_execute_buffer
496 IDirect3DExecuteBuffer IDirect3DExecuteBuffer_iface
;
498 /* IDirect3DExecuteBuffer fields */
500 struct d3d_device
*d3ddev
;
502 D3DEXECUTEBUFFERDESC desc
;
505 /* This buffer will store the transformed vertices */
508 unsigned int nb_indices
;
509 unsigned int nb_vertices
;
511 /* This flags is set to TRUE if we allocated ourselves the
517 HRESULT
d3d_execute_buffer_init(struct d3d_execute_buffer
*execute_buffer
,
518 struct d3d_device
*device
, D3DEXECUTEBUFFERDESC
*desc
) DECLSPEC_HIDDEN
;
519 struct d3d_execute_buffer
*unsafe_impl_from_IDirect3DExecuteBuffer(IDirect3DExecuteBuffer
*iface
) DECLSPEC_HIDDEN
;
521 /* The execute function */
522 HRESULT
d3d_execute_buffer_execute(struct d3d_execute_buffer
*execute_buffer
,
523 struct d3d_device
*device
, struct d3d_viewport
*viewport
) DECLSPEC_HIDDEN
;
525 /*****************************************************************************
526 * IDirect3DVertexBuffer
527 *****************************************************************************/
528 struct d3d_vertex_buffer
530 IDirect3DVertexBuffer7 IDirect3DVertexBuffer7_iface
;
531 IDirect3DVertexBuffer IDirect3DVertexBuffer_iface
;
534 /*** WineD3D and ddraw links ***/
535 struct wined3d_buffer
*wineD3DVertexBuffer
;
536 struct wined3d_vertex_declaration
*wineD3DVertexDeclaration
;
539 /*** Storage for D3D7 specific things ***/
545 BOOL read_since_last_map
;
548 HRESULT
d3d_vertex_buffer_create(struct d3d_vertex_buffer
**buffer
, struct ddraw
*ddraw
,
549 D3DVERTEXBUFFERDESC
*desc
) DECLSPEC_HIDDEN
;
550 struct d3d_vertex_buffer
*unsafe_impl_from_IDirect3DVertexBuffer(IDirect3DVertexBuffer
*iface
) DECLSPEC_HIDDEN
;
551 struct d3d_vertex_buffer
*unsafe_impl_from_IDirect3DVertexBuffer7(IDirect3DVertexBuffer7
*iface
) DECLSPEC_HIDDEN
;
553 /*****************************************************************************
554 * Helper functions from utils.c
555 *****************************************************************************/
557 #define GET_TEXCOUNT_FROM_FVF(d3dvtVertexType) \
558 (((d3dvtVertexType) & D3DFVF_TEXCOUNT_MASK) >> D3DFVF_TEXCOUNT_SHIFT)
560 #define GET_TEXCOORD_SIZE_FROM_FVF(d3dvtVertexType, tex_num) \
561 (((((d3dvtVertexType) >> (16 + (2 * (tex_num)))) + 1) & 0x03) + 1)
563 void ddrawformat_from_wined3dformat(DDPIXELFORMAT
*ddraw_format
,
564 enum wined3d_format_id wined3d_format
) DECLSPEC_HIDDEN
;
565 enum wined3d_format_id
wined3dformat_from_ddrawformat(const DDPIXELFORMAT
*format
) DECLSPEC_HIDDEN
;
566 void DDRAW_dump_surface_desc(const DDSURFACEDESC2
*lpddsd
) DECLSPEC_HIDDEN
;
567 void dump_D3DMATRIX(const D3DMATRIX
*mat
) DECLSPEC_HIDDEN
;
568 void DDRAW_dump_DDCAPS(const DDCAPS
*lpcaps
) DECLSPEC_HIDDEN
;
569 DWORD
get_flexible_vertex_size(DWORD d3dvtVertexType
) DECLSPEC_HIDDEN
;
570 void DDRAW_dump_DDSCAPS2(const DDSCAPS2
*in
) DECLSPEC_HIDDEN
;
571 void DDRAW_dump_cooperativelevel(DWORD cooplevel
) DECLSPEC_HIDDEN
;
572 void DDSD_to_DDSD2(const DDSURFACEDESC
*in
, DDSURFACEDESC2
*out
) DECLSPEC_HIDDEN
;
573 void DDSD2_to_DDSD(const DDSURFACEDESC2
*in
, DDSURFACEDESC
*out
) DECLSPEC_HIDDEN
;
575 void multiply_matrix(D3DMATRIX
*dst
, const D3DMATRIX
*src1
, const D3DMATRIX
*src2
) DECLSPEC_HIDDEN
;
577 /* Used for generic dumping */
584 #define FE(x) { x, #x }
590 void (*func
)(const void *);
595 #define ME(x,f,e) { x, #x, (void (*)(const void *))(f), offsetof(STRUCT, e) }
597 #define DD_STRUCT_COPY_BYSIZE_(to,from,from_size) \
599 DWORD __size = (to)->dwSize; \
600 DWORD __resetsize = min(__size, sizeof(*to)); \
601 DWORD __copysize = min(__resetsize, from_size); \
602 assert(to != from); \
603 memcpy(to, from, __copysize); \
604 memset((char*)(to) + __copysize, 0, __resetsize - __copysize); \
605 (to)->dwSize = __size; /* restore size */ \
608 #define DD_STRUCT_COPY_BYSIZE(to,from) DD_STRUCT_COPY_BYSIZE_(to,from,(from)->dwSize)
610 #define SIZEOF_END_PADDING(type, last_field) \
611 (sizeof(type) - offsetof(type, last_field) - sizeof(((type *)0)->last_field))
613 static inline void copy_to_surfacedesc2(DDSURFACEDESC2
*to
, DDSURFACEDESC2
*from
)
615 DWORD from_size
= from
->dwSize
;
616 if (from_size
== sizeof(DDSURFACEDESC
))
617 from_size
-= SIZEOF_END_PADDING(DDSURFACEDESC
, ddsCaps
);
618 to
->dwSize
= sizeof(DDSURFACEDESC2
); /* for struct copy */
619 DD_STRUCT_COPY_BYSIZE_(to
, from
, from_size
);
622 HRESULT
hr_ddraw_from_wined3d(HRESULT hr
) DECLSPEC_HIDDEN
;
624 #endif /* __WINE_DLLS_DDRAW_DDRAW_PRIVATE_H */