Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (ddraw) |
| |
| static struct ddraw_clipper * | impl_from_IDirectDrawClipper (IDirectDrawClipper *iface) |
| |
| BOOL | ddraw_clipper_is_valid (const struct ddraw_clipper *clipper) |
| |
| static HRESULT WINAPI | ddraw_clipper_QueryInterface (IDirectDrawClipper *iface, REFIID iid, void **object) |
| |
| static ULONG WINAPI | ddraw_clipper_AddRef (IDirectDrawClipper *iface) |
| |
| static ULONG WINAPI | ddraw_clipper_Release (IDirectDrawClipper *iface) |
| |
| static HRESULT WINAPI | ddraw_clipper_SetHWnd (IDirectDrawClipper *iface, DWORD flags, HWND window) |
| |
| static HRGN | get_window_region (HWND window) |
| |
| static HRESULT WINAPI | ddraw_clipper_GetClipList (IDirectDrawClipper *iface, RECT *rect, RGNDATA *clip_list, DWORD *clip_list_size) |
| |
| static HRESULT WINAPI | ddraw_clipper_SetClipList (IDirectDrawClipper *iface, RGNDATA *region, DWORD flags) |
| |
| static HRESULT WINAPI | ddraw_clipper_GetHWnd (IDirectDrawClipper *iface, HWND *window) |
| |
| static HRESULT WINAPI | ddraw_clipper_Initialize (IDirectDrawClipper *iface, IDirectDraw *ddraw, DWORD flags) |
| |
| static HRESULT WINAPI | ddraw_clipper_IsClipListChanged (IDirectDrawClipper *iface, BOOL *changed) |
| |
| HRESULT | ddraw_clipper_init (struct ddraw_clipper *clipper) |
| |
| struct ddraw_clipper * | unsafe_impl_from_IDirectDrawClipper (IDirectDrawClipper *iface) |
| |
◆ ddraw_clipper_AddRef()
| static ULONG WINAPI ddraw_clipper_AddRef |
( |
IDirectDrawClipper * |
iface | ) |
|
|
static |
Definition at line 77 of file clipper.c.
78{
81
83 {
84 WARN(
"Invalid clipper, returning 0.\n");
85 return 0;
86 }
87
89 TRACE(
"%p increasing refcount to %lu.\n", clipper, refcount);
90 return refcount;
91}
#define InterlockedIncrement
BOOL ddraw_clipper_is_valid(const struct ddraw_clipper *clipper)
static struct ddraw_clipper * impl_from_IDirectDrawClipper(IDirectDrawClipper *iface)
◆ ddraw_clipper_GetClipList()
Definition at line 198 of file clipper.c.
200{
203
204 TRACE(
"iface %p, rect %s, clip_list %p, clip_list_size %p.\n",
206
209
211
213 {
215 {
217 WARN(
"Failed to get window region.\n");
219 }
220 }
221 else
222 {
224 {
226 WARN(
"No clip list set.\n");
228 }
229 }
230
232 {
233 HRGN clip_region;
234
236 {
238 ERR(
"Failed to create region.\n");
242 }
243
245 {
247 ERR(
"Failed to combine regions.\n");
252 }
253
257 }
258
262
265}
static const char * wine_dbgstr_rect(const RECT *prc)
static HRGN get_window_region(HWND window)
#define DDERR_INVALIDPARAMS
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
int WINAPI CombineRgn(_In_opt_ HRGN hrgnDest, _In_opt_ HRGN hrgnSrc1, _In_opt_ HRGN hrgnSrc2, _In_ int fnCombineMode)
DWORD WINAPI GetRegionData(_In_ HRGN hrgn, _In_ DWORD nCount, _Out_writes_bytes_to_opt_(nCount, return) LPRGNDATA lpRgnData)
HRGN WINAPI CreateRectRgnIndirect(_In_ LPCRECT)
◆ ddraw_clipper_GetHWnd()
| static HRESULT WINAPI ddraw_clipper_GetHWnd |
( |
IDirectDrawClipper * |
iface, |
|
|
HWND * |
window |
|
) |
| |
|
static |
Definition at line 314 of file clipper.c.
315{
317
319
322
326
328}
static IHTMLWindow2 * window
◆ ddraw_clipper_init()
Definition at line 381 of file clipper.c.
382{
385
387}
static const struct IDirectDrawClipperVtbl ddraw_clipper_vtbl
IDirectDrawClipper IDirectDrawClipper_iface
Referenced by DirectDrawCreateClipper().
◆ ddraw_clipper_Initialize()
| static HRESULT WINAPI ddraw_clipper_Initialize |
( |
IDirectDrawClipper * |
iface, |
|
|
IDirectDraw * |
ddraw, |
|
|
DWORD |
flags |
|
) |
| |
|
static |
Definition at line 330 of file clipper.c.
332{
334
336
339
342 {
345 }
346
349
351}
#define DDERR_ALREADYINITIALIZED
◆ ddraw_clipper_is_valid()
Definition at line 33 of file clipper.c.
34{
35
36
37
38
40 {
41 WARN(
"The application gave us an invalid clipper pointer %p.\n", clipper);
43 }
45 {
46 WARN(
"The clipper vtable is modified: %p, expected %p.\n",
49 }
50
52}
BOOL WINAPI IsBadReadPtr(IN LPCVOID lp, IN UINT_PTR ucb)
Referenced by ddraw_clipper_AddRef(), ddraw_clipper_GetClipList(), ddraw_clipper_GetHWnd(), ddraw_clipper_Initialize(), ddraw_clipper_IsClipListChanged(), ddraw_clipper_QueryInterface(), ddraw_clipper_Release(), ddraw_clipper_SetClipList(), ddraw_clipper_SetHWnd(), ddraw_surface7_GetClipper(), ddraw_surface7_SetClipper(), ddraw_surface_blt_clipped(), and ddraw_surface_wined3d_object_destroyed().
◆ ddraw_clipper_IsClipListChanged()
| static HRESULT WINAPI ddraw_clipper_IsClipListChanged |
( |
IDirectDrawClipper * |
iface, |
|
|
BOOL * |
changed |
|
) |
| |
|
static |
Definition at line 353 of file clipper.c.
354{
356
357 FIXME(
"iface %p, changed %p stub!\n", iface, changed);
358
361
362
364
366}
◆ ddraw_clipper_QueryInterface()
Definition at line 54 of file clipper.c.
55{
57
59
62
65 {
69 }
70
73
75}
#define IsEqualGUID(rguid1, rguid2)
◆ ddraw_clipper_Release()
| static ULONG WINAPI ddraw_clipper_Release |
( |
IDirectDrawClipper * |
iface | ) |
|
|
static |
Definition at line 93 of file clipper.c.
94{
97
99 {
100 WARN(
"Invalid clipper, returning 0.\n");
101 return 0;
102 }
103
105
106 TRACE(
"%p decreasing refcount to %lu.\n", clipper, refcount);
107
108 if (!refcount)
109 {
112
116 }
117
118 return refcount;
119}
#define InterlockedDecrement
◆ ddraw_clipper_SetClipList()
Definition at line 281 of file clipper.c.
282{
284
286
289
291
293 {
296 }
297
303 {
305 ERR(
"Failed to create region.\n");
307 }
308
310
312}
#define DDERR_CLIPPERISUSINGHWND
HRGN WINAPI ExtCreateRegion(_In_opt_ const XFORM *lpx, _In_ DWORD nCount, _In_reads_bytes_(nCount) const RGNDATA *lpData)
◆ ddraw_clipper_SetHWnd()
Definition at line 121 of file clipper.c.
122{
124
126
129
131 {
134 }
135
139
141}
◆ get_window_region()
| static HRGN get_window_region |
( |
HWND |
window | ) |
|
|
static |
Definition at line 143 of file clipper.c.
144{
146 HRGN rgn;
148
150 {
151 WARN(
"Failed to get dc.\n");
153 }
154
156 {
157 ERR(
"Failed to create region.\n");
160 }
161
163 {
164 ERR(
"Failed to get window region.\n");
168 }
169
171 {
174 }
175
177 return rgn;
178}
DWORD WINAPI GetVersion(void)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI OffsetRgn(_In_ HRGN, _In_ int, _In_ int)
int WINAPI GetRandomRgn(_In_ HDC, _In_ HRGN, _In_ INT)
BOOL WINAPI GetDCOrgEx(_In_ HDC, _Out_ LPPOINT)
Referenced by ddraw_clipper_GetClipList().
◆ impl_from_IDirectDrawClipper()
Definition at line 28 of file clipper.c.
29{
31}
#define CONTAINING_RECORD(address, type, field)
Referenced by ddraw_clipper_AddRef(), ddraw_clipper_GetClipList(), ddraw_clipper_GetHWnd(), ddraw_clipper_Initialize(), ddraw_clipper_IsClipListChanged(), ddraw_clipper_QueryInterface(), ddraw_clipper_Release(), ddraw_clipper_SetClipList(), ddraw_clipper_SetHWnd(), and unsafe_impl_from_IDirectDrawClipper().
◆ unsafe_impl_from_IDirectDrawClipper()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
ddraw |
| ) |
|
◆ ddraw_clipper_vtbl
| static const struct IDirectDrawClipperVtbl ddraw_clipper_vtbl |
|
static |
Initial value:=
{
}
static HRESULT WINAPI ddraw_clipper_GetHWnd(IDirectDrawClipper *iface, HWND *window)
static HRESULT WINAPI ddraw_clipper_GetClipList(IDirectDrawClipper *iface, RECT *rect, RGNDATA *clip_list, DWORD *clip_list_size)
static HRESULT WINAPI ddraw_clipper_IsClipListChanged(IDirectDrawClipper *iface, BOOL *changed)
static HRESULT WINAPI ddraw_clipper_SetHWnd(IDirectDrawClipper *iface, DWORD flags, HWND window)
static ULONG WINAPI ddraw_clipper_AddRef(IDirectDrawClipper *iface)
static ULONG WINAPI ddraw_clipper_Release(IDirectDrawClipper *iface)
static HRESULT WINAPI ddraw_clipper_SetClipList(IDirectDrawClipper *iface, RGNDATA *region, DWORD flags)
static HRESULT WINAPI ddraw_clipper_Initialize(IDirectDrawClipper *iface, IDirectDraw *ddraw, DWORD flags)
static HRESULT WINAPI ddraw_clipper_QueryInterface(IDirectDrawClipper *iface, REFIID iid, void **object)
Definition at line 26 of file clipper.c.
Referenced by ddraw_clipper_init(), ddraw_clipper_is_valid(), and unsafe_impl_from_IDirectDrawClipper().