46 HDC surface_dc, screen_dc;
79 ERR(
"Failed to get surface DC, hr %#x.\n",
hr);
88 ERR(
"Failed to get screen DC.\n");
104 ERR(
"Failed to blit to/from screen.\n");
147 IDirectDrawSurface7_AddRef(iface);
149 TRACE(
"(%p) returning IDirectDrawSurface7 interface at %p\n",
This, *
obj);
155 IDirectDrawSurface4_AddRef(&
This->IDirectDrawSurface4_iface);
156 *
obj = &
This->IDirectDrawSurface4_iface;
157 TRACE(
"(%p) returning IDirectDrawSurface4 interface at %p\n",
This, *
obj);
163 IDirectDrawSurface3_AddRef(&
This->IDirectDrawSurface3_iface);
164 *
obj = &
This->IDirectDrawSurface3_iface;
165 TRACE(
"(%p) returning IDirectDrawSurface3 interface at %p\n",
This, *
obj);
171 IDirectDrawSurface2_AddRef(&
This->IDirectDrawSurface2_iface);
172 *
obj = &
This->IDirectDrawSurface2_iface;
173 TRACE(
"(%p) returning IDirectDrawSurface2 interface at %p\n",
This, *
obj);
180 IDirectDrawSurface_AddRef(&
This->IDirectDrawSurface_iface);
181 *
obj = &
This->IDirectDrawSurface_iface;
182 TRACE(
"(%p) returning IDirectDrawSurface interface at %p\n",
This, *
obj);
188 IDirectDrawGammaControl_AddRef(&
This->IDirectDrawGammaControl_iface);
189 *
obj = &
This->IDirectDrawGammaControl_iface;
190 TRACE(
"(%p) returning IDirectDrawGammaControl interface at %p\n",
This, *
obj);
196 WARN(
"Color control not implemented.\n");
201 if (
This->version != 7)
217 WARN(
"Failed to create device, hr %#x.\n",
hr);
224 *
obj = &
This->device1->IDirect3DDevice_iface;
231 *
obj = &
This->IDirect3DTexture2_iface;
238 *
obj = &
This->IDirect3DTexture_iface;
245 if (
This->version != 7)
346 TRACE(
"iface %p increasing refcount to %u.\n", iface, refcount);
361 TRACE(
"iface %p increasing refcount to %u.\n", iface, refcount);
376 TRACE(
"iface %p increasing refcount to %u.\n", iface, refcount);
391 TRACE(
"iface %p increasing refcount to %u.\n", iface, refcount);
406 TRACE(
"iface %p increasing refcount to %u.\n", iface, refcount);
421 TRACE(
"iface %p increasing refcount to %u.\n", iface, refcount);
435 TRACE(
"iface %p.\n", iface);
444 TRACE(
"iface %p.\n", iface);
459 WARN(
"Alpha palette set on non-texture surface, returning DDERR_INVALIDSURFACETYPE.\n");
472 prev->
flags &= ~DDPCAPS_PRIMARYSURFACE;
483 surface->
palette = palette_impl;
495 TRACE(
"surface %p.\n", surface);
517 IUnknown_Release(&surface->
device1->IUnknown_inner);
524 WARN(
"Destroying surface %p with refcounts 7: %u 4: %u 3: %u 2: %u 1: %u.\n",
539 if (
This->iface_count == 1 &&
This->attached_iface)
540 IUnknown_AddRef(
This->attached_iface);
553 if(!
This->is_complex_root)
555 WARN(
"(%p) Attempt to destroy a surface that is not a complex root\n",
This);
606 TRACE(
"iface %p decreasing refcount to %u.\n", iface, refcount);
621 TRACE(
"iface %p decreasing refcount to %u.\n", iface, refcount);
636 TRACE(
"iface %p decreasing refcount to %u.\n", iface, refcount);
651 TRACE(
"iface %p decreasing refcount to %u.\n", iface, refcount);
666 TRACE(
"iface %p decreasing refcount to %u.\n", iface, refcount);
681 TRACE(
"iface %p decreasing refcount to %u.\n", iface, refcount);
695 TRACE(
"iface %p.\n", iface);
704 TRACE(
"iface %p.\n", iface);
744 TRACE(
"iface %p, caps %p, attachment %p.\n", iface, Caps, Surface);
748 if(
This->version < 7)
765 surf =
This->complex_array[
i];
768 TRACE(
"Surface: (%p) caps: %#x, %#x, %#x, %#x.\n", surf,
783 TRACE(
"(%p): Returning surface %p\n",
This, surf);
797 TRACE(
"Surface: (%p) caps: %#x, %#x, %#x, %#x.\n", surf,
806 TRACE(
"(%p): Returning surface %p\n",
This, surf);
814 TRACE(
"(%p) Didn't find a valid surface\n",
This);
864 &caps2, &attachment7);
895 &caps2, &attachment7);
926 &caps2, &attachment7);
964 TRACE(
"surface %p, rect %s, surface_desc %p, surface_desc_size %u, flags %#x, h %p.\n",
981 if ((
rect->left < 0) || (
rect->top < 0)
985 WARN(
"Trying to lock an invalid rectangle, returning DDERR_INVALIDPARAMS\n");
1028 TRACE(
"locked surface returning description :\n");
1060 WARN(
"Invalid structure size %u.\n",
desc->dwSize);
1068 unsigned int surface_desc_size;
1070 TRACE(
"iface %p, rect %s, surface_desc %p, flags %#x, h %p.\n",
1083 unsigned int surface_desc_size;
1085 TRACE(
"iface %p, rect %s, surface_desc %p, flags %#x, h %p.\n",
1098 unsigned int surface_desc_size;
1102 TRACE(
"iface %p, rect %s, surface_desc %p, flags %#x, h %p.\n",
1120 unsigned int surface_desc_size;
1124 TRACE(
"iface %p, rect %s, surface_desc %p, flags %#x, h %p.\n",
1142 unsigned int surface_desc_size;
1146 TRACE(
"iface %p, rect %s, surface_desc %p, flags %#x, h %p.\n",
1192 TRACE(
"iface %p, rect %p.\n", iface, pRect);
1201 TRACE(
"iface %p, data %p.\n", iface,
data);
1211 TRACE(
"iface %p, data %p.\n", iface,
data);
1221 TRACE(
"iface %p, data %p.\n", iface,
data);
1252 WARN(
"Not in exclusive mode.\n");
1259 ERR(
"Invalid sub-resource index %u on surface %p.\n", dst_impl->
sub_resource_idx, dst_impl);
1270 WARN(
"Surface %p is not on the same flip chain as surface %p.\n",
src, iface);
1277 WARN(
"Surface %p is not on the same flip chain as surface %p.\n",
src, iface);
1292 ERR(
"Invalid sub-resource index %u on surface %p.\n", src_impl->
sub_resource_idx, src_impl);
1302 ERR(
"Can't find a flip target\n");
1324 ERR(
"Invalid sub-resource index %u on surface %p.\n", src_impl->
sub_resource_idx, src_impl);
1326 dst_impl = src_impl;
1413 DWORD wined3d_flags;
1418 dst_surface->
palette, fill_colour, &colour))
1429 dst_surface->
palette, fill_colour, &colour))
1437 wined3d_flags =
flags & ~DDBLT_ASYNC;
1455 RECT src_rect, dst_rect;
1456 float scale_x, scale_y;
1457 const RECT *clip_rect;
1458 UINT clip_list_size;
1467 dst_rect = *dst_rect_in;
1478 src_rect = *src_rect_in;
1503 if (
FAILED(
hr = IDirectDrawClipper_GetClipList(&dst_surface->
clipper->IDirectDrawClipper_iface,
1504 &dst_rect,
NULL, &clip_list_size)))
1506 WARN(
"Failed to get clip list size, hr %#x.\n",
hr);
1510 if (!(clip_list =
heap_alloc(clip_list_size)))
1512 WARN(
"Failed to allocate clip list.\n");
1516 if (
FAILED(
hr = IDirectDrawClipper_GetClipList(&dst_surface->
clipper->IDirectDrawClipper_iface,
1517 &dst_rect, clip_list, &clip_list_size)))
1519 WARN(
"Failed to get clip list, hr %#x.\n",
hr);
1527 RECT src_rect_clipped = src_rect;
1532 src_rect_clipped.
top += (
LONG)((clip_rect[
i].
top - dst_rect.
top) * scale_y);
1544 src_surface, &src_rect_clipped,
flags, fill_colour,
fx,
filter)))
1580 DWORD unsupported_flags;
1581 DWORD fill_colour = 0;
1585 TRACE(
"iface %p, dst_rect %s, src_surface %p, src_rect %s, flags %#x, fx %p.\n",
1602 if (
flags & unsupported_flags)
1604 WARN(
"Ignoring unsupported flags %#x.\n",
flags & unsupported_flags);
1605 flags &= ~unsupported_flags;
1610 WARN(
"Invalid source color key parameters, returning DDERR_INVALIDPARAMS\n");
1616 WARN(
"Invalid destination color key parameters, returning DDERR_INVALIDPARAMS\n");
1622 FIXME(
"DDBLT_DDROPS not implemented.\n");
1624 FIXME(
" rop %#x, pattern %p.\n",
fx->dwDDROP,
fx->u5.lpDDSPattern);
1635 WARN(
"DDBLT_ROP used with DDBLT_COLORFILL or DDBLT_DEPTHFILL, returning DDERR_INVALIDPARAMS.\n");
1641 WARN(
"Depth or colorfill is not compatible with source surfaces, returning DDERR_INVALIDPARAMS\n");
1647 WARN(
"Depth or colorfill used with NULL fx, returning DDERR_INVALIDPARAMS.\n");
1652 flags &= ~DDBLT_DEPTHFILL;
1657 WARN(
"DDBLT_COLORFILL used on a depth buffer, returning DDERR_INVALIDPARAMS.\n");
1663 WARN(
"DDBLT_DEPTHFILL used on a color buffer, returning DDERR_INVALIDPARAMS.\n");
1673 WARN(
"DDBLT_ROP used with NULL fx, returning DDERR_INVALIDPARAMS.\n");
1677 if (src_impl && src_rect
1681 WARN(
"Invalid source rectangle.\n");
1685 flags &= ~DDBLT_ROP;
1710 WARN(
"Unsupported ROP %#x used, returning DDERR_NORASTEROPHW.\n",
fx->dwROP);
1717 WARN(
"No source surface.\n");
1723 WARN(
"DDBLT_KEYSRC blit without color key in surface, returning DDERR_INVALIDPARAMS\n");
1729 WARN(
"DDBLT_KEYDEST blit without color key in surface, returning DDERR_INVALIDPARAMS\n");
1736 wined3d_fx.
fx =
fx->dwDDFX;
1737 fill_colour =
fx->u5.dwFillColor;
1738 wined3d_fx.
dst_color_key.color_space_low_value =
fx->ddckDestColorkey.dwColorSpaceLowValue;
1739 wined3d_fx.
dst_color_key.color_space_high_value =
fx->ddckDestColorkey.dwColorSpaceHighValue;
1740 wined3d_fx.
src_color_key.color_space_low_value =
fx->ddckSrcColorkey.dwColorSpaceLowValue;
1741 wined3d_fx.
src_color_key.color_space_high_value =
fx->ddckSrcColorkey.dwColorSpaceHighValue;
1761 TRACE(
"iface %p, dst_rect %s, src_surface %p, src_rect %s, flags %#x, fx %p.\n",
1774 TRACE(
"iface %p, dst_rect %s, src_surface %p, src_rect %s, flags %#x, fx %p.\n",
1787 TRACE(
"iface %p, dst_rect %s, src_surface %p, src_rect %s, flags %#x, fx %p.\n",
1800 TRACE(
"iface %p, dst_rect %s, src_surface %p, src_rect %s, flags %#x, fx %p.\n",
1853 TRACE(
"surface %p, attachment %p.\n",
This, Surf);
1866 WARN(
"Surface %p is already attached somewhere. next_attached %p, first_attached %p.\n",
1876 This->next_attached = Surf;
1879 if (
This->ddraw->d3ddevice)
1899 WARN(
"Application tries to attach a non Z buffer surface. caps %08x\n",
1934 WARN(
"Surface sizes do not match.\n");
1941 WARN(
"Invalid attachment combination.\n");
2027 TRACE(
"surface %p, attachment %p, detach_iface %p.\n", surface,
attachment, detach_iface);
2036 if (
attachment->attached_iface != detach_iface)
2038 WARN(
"attachment->attach_iface %p != detach_iface %p.\n",
attachment->attached_iface, detach_iface);
2046 attachment->surface_desc.ddsCaps.dwCaps2 &= ~DDSCAPS2_MIPMAPSUBLEVEL;
2080 IUnknown_Release(detach_iface);
2213 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2236 else if (surface->
ddraw->primary)
2264 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2273 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2282 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2291 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2313 TRACE(
"iface %p, dc %p.\n", iface,
hdc);
2338 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2347 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2356 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2365 TRACE(
"iface %p, dc %p.\n", iface,
dc);
2387 TRACE(
"iface %p, caps %p.\n", iface, Caps);
2401 TRACE(
"iface %p, caps %p.\n", iface, caps);
2412 TRACE(
"iface %p, caps %p.\n", iface, caps);
2427 TRACE(
"iface %p, caps %p.\n", iface, caps);
2442 TRACE(
"iface %p, caps %p.\n", iface, caps);
2465 WARN(
"Called on non-managed texture returning DDERR_INVALIDPARAMS.\n");
2491 WARN(
"Called on offscreenplain surface, returning DDERR_INVALIDOBJECT.\n");
2496 WARN(
"Called on non-managed texture or non-root surface, returning DDERR_INVALIDPARAMS.\n");
2532 TRACE(
"iface %p, tag %s, data %p, data_size %u, flags %#x.\n",
2537 WARN(
"data is NULL, returning DDERR_INVALIDPARAMS.\n");
2552 TRACE(
"iface %p, tag %s, data %p, data_size %u, flags %#x.\n",
2579 TRACE(
"iface %p, tag %s, data %p, data_size %p.\n",
2594 if (*size < stored_data->
size)
2619 TRACE(
"iface %p, tag %s, data %p, data_size %p.\n",
2681 TRACE(
"iface %p, flags %#x.\n", iface,
Flags);
2691 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
2700 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
2709 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
2728 TRACE(
"iface %p, flags %#x.\n", iface,
Flags);
2737 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
2746 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
2755 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
2784 TRACE(
"iface %p, batch %p, count %u, flags %#x.\n", iface, batch,
count,
flags);
2793 TRACE(
"iface %p, batch %p, count %u, flags %#x.\n", iface, batch,
count,
flags);
2802 TRACE(
"iface %p, batch %p, count %u, flags %#x.\n", iface, batch,
count,
flags);
2811 TRACE(
"iface %p, batch %p, count %u, flags %#x.\n", iface, batch,
count,
flags);
2839 TRACE(
"iface %p, context %p, callback %p.\n", iface,
context,
cb);
2873 TRACE(
" end of enumeration.\n");
3069 TRACE(
"iface %p, flags %#x.\n", iface,
Flags);
3086 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3095 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3104 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3113 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3136 TRACE(
"iface %p, flags %#x, color_key %p.\n", iface,
Flags, CKey);
3151 *CKey =
This->surface_desc.ddckCKDestBlt;
3160 *CKey =
This->surface_desc.u3.ddckCKDestOverlay;
3169 *CKey =
This->surface_desc.ddckCKSrcBlt;
3178 *CKey =
This->surface_desc.ddckCKSrcOverlay;
3238 TRACE(
"iface %p, flags %#x.\n", iface,
Flags);
3257 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3266 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3275 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3284 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3306 TRACE(
"iface %p, x %p, y %p.\n", iface,
x,
y);
3320 TRACE(
"iface %p, x %p, y %p.\n", iface,
x,
y);
3329 TRACE(
"iface %p, x %p, y %p.\n", iface,
x,
y);
3338 TRACE(
"iface %p, x %p, y %p.\n", iface,
x,
y);
3347 TRACE(
"iface %p, x %p, y %p.\n", iface,
x,
y);
3437 TRACE(
"iface %p, surface_desc %p.\n", iface, DDSD);
3444 WARN(
"Incorrect struct size %d, returning DDERR_INVALIDPARAMS\n",DDSD->
dwSize);
3450 TRACE(
"Returning surface desc:\n");
3461 TRACE(
"iface %p, surface_desc %p.\n", iface, DDSD);
3482 TRACE(
"Returning surface desc:\n");
3497 TRACE(
"iface %p, surface_desc %p.\n", iface, DDSD);
3506 TRACE(
"iface %p, surface_desc %p.\n", iface, DDSD);
3595 IDirect3DDevice *
device, IDirectDrawSurface *surface)
3597 TRACE(
"iface %p, device %p, surface %p.\n", iface,
device, surface);
3616 TRACE(
"iface %p.\n", iface);
3628 TRACE(
"iface %p.\n", iface);
3637 TRACE(
"iface %p.\n", iface);
3646 TRACE(
"iface %p.\n", iface);
3655 TRACE(
"iface %p.\n", iface);
3674 TRACE(
"iface %p.\n", iface);
3685 WARN(
"Failed to get display mode, hr %#x.\n",
hr);
3691 WARN(
"Failed to get resource desc, hr %#x.\n",
hr);
3697 WARN(
"Display mode dimensions %ux%u don't match surface dimensions %ux%u.\n",
3704 WARN(
"Display mode format %#x doesn't match surface format %#x.\n",
3720 TRACE(
"iface %p.\n", iface);
3729 TRACE(
"iface %p.\n", iface);
3738 TRACE(
"iface %p.\n", iface);
3747 TRACE(
"iface %p.\n", iface);
3769 TRACE(
"iface %p, x %d, y %d.\n", iface,
x,
y);
3783 TRACE(
"iface %p, x %d, y %d.\n", iface,
x,
y);
3792 TRACE(
"iface %p, x %d, y %d.\n", iface,
x,
y);
3801 TRACE(
"iface %p, x %d, y %d.\n", iface,
x,
y);
3810 TRACE(
"iface %p, x %d, y %d.\n", iface,
x,
y);
3836 unsigned int dst_sub_resource_idx = 0;
3839 TRACE(
"iface %p, src_rect %s, dst_surface %p, dst_rect %s, flags %#x, fx %p.\n",
3843 FIXME(
"Ignoring fx %p.\n",
fx);
3852 src_rect, dst_wined3d_texture, dst_sub_resource_idx, dst_rect,
flags);
3871 TRACE(
"iface %p, src_rect %s, dst_surface %p, dst_rect %s, flags %#x, fx %p.\n",
3884 TRACE(
"iface %p, src_rect %s, dst_surface %p, dst_rect %s, flags %#x, fx %p.\n",
3897 TRACE(
"iface %p, src_rect %s, dst_surface %p, dst_rect %s, flags %#x, fx %p.\n",
3910 TRACE(
"iface %p, src_rect %s, dst_surface %p, dst_rect %s, flags %#x, fx %p.\n",
3930 TRACE(
"iface %p, flags %#x.\n", iface,
Flags);
3939 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3948 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3957 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3966 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
3994 WARN(
"Not an overlay surface.\n");
4069 TRACE(
"iface %p, ddraw %p.\n", iface,
DD);
4074 switch(
This->version)
4077 *
DD = &
This->ddraw->IDirectDraw7_iface;
4081 *
DD = &
This->ddraw->IDirectDraw4_iface;
4085 *
DD = &
This->ddraw->IDirectDraw2_iface;
4089 *
DD = &
This->ddraw->IDirectDraw_iface;
4102 TRACE(
"iface %p, ddraw %p.\n", iface,
ddraw);
4111 TRACE(
"iface %p, ddraw %p.\n", iface,
ddraw);
4120 TRACE(
"iface %p, ddraw %p.\n", iface,
ddraw);
4127 TRACE(
"iface %p.\n", iface);
4136 TRACE(
"iface %p.\n", iface);
4177 TRACE(
"iface %p, lod %u.\n", iface, MaxLOD);
4210 TRACE(
"iface %p, lod %p.\n", iface, MaxLOD);
4250 DWORD src_w, src_h, dst_w, dst_h;
4254 TRACE(
"iface %p, dst_x %u, dst_y %u, src_surface %p, src_rect %s, flags %#x.\n",
4266 src_w = src_rect->
right - src_rect->
left;
4267 src_h = src_rect->
bottom - src_rect->
top;
4268 if (src_w > dst_w || dst_x > dst_w - src_w
4269 || src_h > dst_h || dst_y > dst_h - src_h)
4271 WARN(
"Destination area out of bounds, returning DDERR_INVALIDRECT.\n");
4275 SetRect(&dst_rect, dst_x, dst_y, dst_x + src_w, dst_y + src_h);
4289 WARN(
"Destination surface has a clipper set, returning DDERR_BLTFASTCANTCLIP.\n");
4315 TRACE(
"iface %p, dst_x %u, dst_y %u, src_surface %p, src_rect %s, flags %#x.\n",
4328 TRACE(
"iface %p, dst_x %u, dst_y %u, src_surface %p, src_rect %s, flags %#x.\n",
4341 TRACE(
"iface %p, dst_x %u, dst_y %u, src_surface %p, src_rect %s, flags %#x.\n",
4354 TRACE(
"iface %p, dst_x %u, dst_y %u, src_surface %p, src_rect %s, flags %#x.\n",
4380 TRACE(
"iface %p, clipper %p.\n", iface, Clipper);
4392 *Clipper = &surface->
clipper->IDirectDrawClipper_iface;
4393 IDirectDrawClipper_AddRef(*Clipper);
4448 IDirectDrawClipper *iclipper)
4455 TRACE(
"iface %p, clipper %p.\n", iface, iclipper);
4458 if (clipper ==
This->clipper)
4464 This->clipper = clipper;
4466 if (clipper !=
NULL)
4467 IDirectDrawClipper_AddRef(iclipper);
4475 IDirectDrawClipper_GetHWnd(iclipper, &clipWindow);
4556 TRACE(
"iface %p, surface_desc %p, flags %#x.\n", iface, DDSD,
Flags);
4560 WARN(
"DDSD is NULL, returning DDERR_INVALIDPARAMS\n");
4565 WARN(
"Flags is %x, returning DDERR_INVALIDPARAMS\n",
Flags);
4572 WARN(
"Surface is not in system memory, returning DDERR_INVALIDSURFACETYPE.\n");
4578 if (DDSD->
dwFlags & ~allowed_flags)
4580 WARN(
"Invalid flags (0x%08x) set, returning DDERR_INVALIDPARAMS\n", DDSD->
dwFlags);
4585 WARN(
"DDSD_LPSURFACE is not set or lpSurface is NULL, returning DDERR_INVALIDPARAMS\n");
4590 WARN(
"DDSD_CAPS is set, returning DDERR_INVALIDCAPS.\n");
4597 WARN(
"DDSD_WIDTH is set, but DDSD_PITCH is not, returning DDERR_INVALIDPARAMS.\n");
4602 WARN(
"Pitch is %d, width is %u, returning DDERR_INVALIDPARAMS.\n",
4607 TRACE(
"Surface width changed from %u to %u.\n",
This->surface_desc.dwWidth, DDSD->
dwWidth);
4608 if (DDSD->u1.
lPitch !=
This->surface_desc.u1.lPitch)
4609 TRACE(
"Surface pitch changed from %u to %u.\n",
This->surface_desc.u1.lPitch, DDSD->u1.
lPitch);
4615 WARN(
"DDSD_PITCH is set, but DDSD_WIDTH is not, returning DDERR_INVALIDPARAMS.\n");
4620 pitch =
This->surface_desc.u1.lPitch;
4628 WARN(
"Height is 0, returning DDERR_INVALIDPARAMS.\n");
4632 TRACE(
"Surface height changed from %u to %u.\n",
This->surface_desc.dwHeight, DDSD->
dwHeight);
4648 ERR(
"Requested to set an unknown pixelformat\n");
4654 TRACE(
"Surface format changed from %#x to %#x.\n", current_format_id,
format_id);
4664 WARN(
"Failed to update surface desc, hr %#x.\n",
hr);
4672 This->surface_desc.u1.lPitch = DDSD->u1.
lPitch;
4719 WARN(
"Surface lost, returning DDERR_SURFACELOST.\n");
4724 if ((palette_impl = surface->
palette))
4727 IDirectDrawPalette_AddRef(*
palette);
4784 WARN(
"Range color keys are not supported, returning DDERR_NOCOLORKEYHW.\n");
4787 flags &= ~DDCKEY_COLORSPACE;
4794 fixed_color_key.dwColorSpaceLowValue = fixed_color_key.dwColorSpaceHighValue =
color_key->dwColorSpaceLowValue;
4915 WARN(
"Surface lost, returning DDERR_SURFACELOST.\n");
4930 WARN(
"Surface lost, returning DDERR_SURFACELOST.\n");
4945 WARN(
"Surface lost, returning DDERR_SURFACELOST.\n");
4960 WARN(
"Surface lost, returning DDERR_SURFACELOST.\n");
4975 WARN(
"Surface lost, returning DDERR_SURFACELOST.\n");
5001 TRACE(
"iface %p, flags %#x, gamma_ramp %p.\n", iface,
flags, gamma_ramp);
5005 WARN(
"Invalid gamma_ramp passed.\n");
5017 ERR(
"Not implemented for non-primary surfaces.\n");
5043 TRACE(
"iface %p, flags %#x, gamma_ramp %p.\n", iface,
flags, gamma_ramp);
5047 WARN(
"Invalid gamma_ramp passed.\n");
5060 ERR(
"Not implemented for non-primary surfaces.\n");
5108 WARN(
"iface %p. Not implemented.\n", iface);
5141 ERR(
"Failed to allocate a texture handle.\n");
5149 TRACE(
"Returning handle %08x.\n", surface->
Handle);
5253 RECT src_rect, dst_rect;
5256 TRACE(
"iface %p, src_texture %p.\n", iface, src_texture);
5258 if (src_surface == dst_surface)
5260 TRACE(
"copying surface %p to surface %p, why?\n", src_surface, dst_surface);
5270 TRACE(
"Copying surface %p to surface %p.\n", src_surface, dst_surface);
5278 dst_pal = dst_surface->
palette;
5279 src_pal = src_surface->
palette;
5317 ERR(
"Failed to blit surface, hr %#x.\n",
hr);
5332 if (src_surface && !dst_surface)
5335 if (!src_surface || !dst_surface)
5349 TRACE(
"iface %p, src_texture %p.\n", iface, src_texture);
5643 if (!iface)
return NULL;
5646 HRESULT hr = IDirectDrawSurface7_QueryInterface(iface, &IID_IDirectDrawSurface7, (
void **)&iface);
5649 WARN(
"Object %p doesn't expose interface IDirectDrawSurface7.\n", iface);
5652 IDirectDrawSurface7_Release(iface);
5659 if (!iface)
return NULL;
5662 HRESULT hr = IDirectDrawSurface4_QueryInterface(iface, &IID_IDirectDrawSurface4, (
void **)&iface);
5665 WARN(
"Object %p doesn't expose interface IDirectDrawSurface4.\n", iface);
5668 IDirectDrawSurface4_Release(iface);
5675 if (!iface)
return NULL;
5678 HRESULT hr = IDirectDrawSurface3_QueryInterface(iface, &IID_IDirectDrawSurface3, (
void **)&iface);
5681 WARN(
"Object %p doesn't expose interface IDirectDrawSurface3.\n", iface);
5684 IDirectDrawSurface3_Release(iface);
5691 if (!iface)
return NULL;
5694 HRESULT hr = IDirectDrawSurface2_QueryInterface(iface, &IID_IDirectDrawSurface2, (
void **)&iface);
5697 WARN(
"Object %p doesn't expose interface IDirectDrawSurface2.\n", iface);
5700 IDirectDrawSurface2_Release(iface);
5707 if (!iface)
return NULL;
5710 HRESULT hr = IDirectDrawSurface_QueryInterface(iface, &IID_IDirectDrawSurface, (
void **)&iface);
5713 WARN(
"Object %p doesn't expose interface IDirectDrawSurface.\n", iface);
5716 IDirectDrawSurface_Release(iface);
5723 if (!iface)
return NULL;
5730 if (!iface)
return NULL;
5739 TRACE(
"surface %p.\n", surface);
5749 ERR(
"DeleteAttachedSurface failed.\n");
5759 IDirectDrawClipper_Release(&surface->
clipper->IDirectDrawClipper_iface);
5761 if (surface == surface->
ddraw->primary)
5801 unsigned int layers = 1;
5802 unsigned int pitch = 0;
5806 TRACE(
"ddraw %p, surface_desc %p, surface %p, outer_unknown %p, version %u.\n",
5810 TRACE(
"Requesting surface desc:\n");
5834 WARN(
"Tried to create a flippable surface without any back buffers.\n");
5841 WARN(
"Tried to create a flippable surface without DDSCAPS_COMPLEX.\n");
5848 WARN(
"Tried to create a flippable cubemap.\n");
5855 FIXME(
"Flippable textures not implemented.\n");
5864 WARN(
"Tried to specify a back buffer count for a non-flippable surface.\n");
5875 WARN(
"Tried to create a primary surface with DDSCAPS_TEXTURE.\n");
5882 WARN(
"Tried to create a flippable primary surface without both DDSCAPS_FLIP and DDSCAPS_COMPLEX.\n");
5889 WARN(
"Tried to create a flippable primary surface without DDSCL_EXCLUSIVE.\n");
5899 WARN(
"Tried to create a surface in both system and video memory.\n");
5907 WARN(
"Caps %#x require DDSCAPS_TEXTURE.\n",
desc->ddsCaps.dwCaps);
5915 WARN(
"Cube map faces requested without cube map flag.\n");
5923 WARN(
"Cube map without faces requested.\n");
5930 FIXME(
"Partial cube maps not implemented.\n");
5936 WARN(
"DDSCAPS2_TEXTUREMANAGE used without DDSCAPS_TEXTURE, returning DDERR_INVALIDCAPS.\n");
5942 WARN(
"DDSCAPS2_TEXTUREMANAGE used width DDSCAPS_VIDEOMEMORY "
5943 "or DDSCAPS_SYSTEMMEMORY, returning DDERR_INVALIDCAPS.\n");
5951 ERR(
"Failed to get display mode, hr %#x.\n",
hr);
5960 desc->u4.ddpfPixelFormat.dwSize =
sizeof(
desc->u4.ddpfPixelFormat);
5968 WARN(
"Unsupported / unknown pixelformat.\n");
5978 WARN(
"No width / height specified.\n");
5988 if (!
desc->dwWidth || !
desc->dwHeight)
6014 ERR(
"Failed to reset device.\n");
6026 wined3d_desc.
usage = 0;
6030 wined3d_desc.
depth = 1;
6031 wined3d_desc.
size = 0;
6035 WARN(
"The application requests a 3D capable surface, but the ddraw object was created without 3D support.\n");
6047 if (!
desc->u2.dwMipMapCount)
6065 desc->u2.dwMipMapCount = 1;
6109 WARN(
"System memory overlays are not allowed.\n");
6129 FIXME(
"Application wants to create rendering target in system memory, using video memory instead\n");
6165 WARN(
"User memory surfaces should not be GPU accessible.\n");
6172 WARN(
"User memory surfaces not supported before version 4.\n");
6177 if (!
desc->lpSurface)
6179 WARN(
"NULL surface memory pointer specified.\n");
6188 WARN(
"Pitch specified on a compressed user memory surface.\n");
6195 WARN(
"Compressed user memory surfaces should explicitly specify the linear size.\n");
6202 wined3d_desc.
format, wined3d_desc.
width) * ((
desc->dwHeight + 3) / 4))
6204 WARN(
"Invalid linear size %u specified.\n",
desc->u1.dwLinearSize);
6213 WARN(
"User memory surfaces should explicitly specify the pitch.\n");
6221 WARN(
"Invalid pitch %u specified.\n",
desc->u1.lPitch);
6226 pitch =
desc->u1.lPitch;
6231 &&
desc->u3.ddckCKDestOverlay.dwColorSpaceLowValue !=
desc->u3.ddckCKDestOverlay.dwColorSpaceHighValue)
6233 &&
desc->ddckCKDestBlt.dwColorSpaceLowValue !=
desc->ddckCKDestBlt.dwColorSpaceHighValue)
6235 &&
desc->ddckCKSrcOverlay.dwColorSpaceLowValue !=
desc->ddckCKSrcOverlay.dwColorSpaceHighValue)
6237 &&
desc->ddckCKSrcBlt.dwColorSpaceLowValue !=
desc->ddckCKSrcBlt.dwColorSpaceHighValue))
6239 WARN(
"Range color keys not supported, returning DDERR_NOCOLORKEYHW.\n");
6266 WARN(
"Failed to create wined3d texture, hr %#x.\n",
hr);
6290 for (
i = 0;
i < layers; ++
i)
6292 attach = &
root->complex_array[layers - 1 -
i];
6302 mip_desc->dwWidth = wined3d_mip_desc.
width;
6303 mip_desc->dwHeight = wined3d_mip_desc.
height;
6309 mip_desc->ddsCaps.dwCaps2 &= ~DDSCAPS2_MIPMAPSUBLEVEL;
6314 mip_desc->ddsCaps.dwCaps2 &= ~DDSCAPS2_CUBEMAP_ALLFACES;
6352 ERR(
"Failed to set surface memory, hr %#x.\n",
hr);
6358 unsigned int count =
desc->u5.dwBackBufferCount;
6361 attach = &
last->complex_array[0];
6380 desc->u5.dwBackBufferCount = 0;
6410 attach = &
last->complex_array[0];
6423 IDirectDrawSurface7_Release(&
root->IDirectDrawSurface7_iface);
6425 IDirectDrawSurface4_Release(&
root->IDirectDrawSurface4_iface);
6427 IDirectDrawSurface_Release(&
root->IDirectDrawSurface_iface);
6437 unsigned int texture_level, row_pitch, slice_pitch;
6477 desc->u1.dwLinearSize = ~0
u;
6479 desc->u1.dwLinearSize = slice_pitch;
6486 desc->u1.lPitch = row_pitch;
6530 ERR(
"Failed to create rendertarget view, hr %#x.\n",
hr);
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
static const char * wine_dbgstr_rect(const RECT *prc)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static void list_remove(struct list_entry *entry)
#define STDMETHODCALLTYPE
#define IDirect3DDevice_AddRef(p)
#define IDirect3DTexture2_AddRef(p)
void DDSD_to_DDSD2(const DDSURFACEDESC *in, DDSURFACEDESC2 *out) DECLSPEC_HIDDEN
void DDRAW_dump_surface_desc(const DDSURFACEDESC2 *lpddsd) DECLSPEC_HIDDEN
BOOL wined3d_colour_from_ddraw_colour(const DDPIXELFORMAT *pf, const struct ddraw_palette *palette, DWORD colour, struct wined3d_color *wined3d_colour) DECLSPEC_HIDDEN
static struct ddraw_surface * impl_from_IDirectDrawSurface3(IDirectDrawSurface3 *iface)
static struct ddraw_surface * impl_from_IDirectDrawSurface4(IDirectDrawSurface4 *iface)
static struct ddraw_surface * impl_from_IDirectDrawSurface(IDirectDrawSurface *iface)
void * ddraw_free_handle(struct ddraw_handle_table *t, DWORD handle, enum ddraw_handle_type type) DECLSPEC_HIDDEN
static BOOL format_is_compressed(const DDPIXELFORMAT *format)
DWORD ddraw_allocate_handle(struct ddraw_handle_table *t, void *object, enum ddraw_handle_type type) DECLSPEC_HIDDEN
#define MAX_COMPLEX_ATTACHED
static struct ddraw_surface * impl_from_IDirectDrawSurface2(IDirectDrawSurface2 *iface)
void ddrawformat_from_wined3dformat(DDPIXELFORMAT *ddraw_format, enum wined3d_format_id wined3d_format) DECLSPEC_HIDDEN
#define DD_STRUCT_COPY_BYSIZE_(to, from, to_size, from_size)
HRESULT d3d_device_create(struct ddraw *ddraw, const GUID *guid, struct ddraw_surface *target, IUnknown *rt_iface, UINT version, struct d3d_device **device, IUnknown *outer_unknown) DECLSPEC_HIDDEN
static BOOL format_is_paletteindexed(const DDPIXELFORMAT *fmt)
struct d3d_device * unsafe_impl_from_IDirect3DDevice(IDirect3DDevice *iface) DECLSPEC_HIDDEN
enum wined3d_depth_buffer_type d3d_device_update_depth_stencil(struct d3d_device *device) DECLSPEC_HIDDEN
struct d3d_device * unsafe_impl_from_IDirect3DDevice2(IDirect3DDevice2 *iface) DECLSPEC_HIDDEN
struct ddraw_palette * unsafe_impl_from_IDirectDrawPalette(IDirectDrawPalette *iface) DECLSPEC_HIDDEN
void DDSD2_to_DDSD(const DDSURFACEDESC2 *in, DDSURFACEDESC *out) DECLSPEC_HIDDEN
HRESULT hr_ddraw_from_wined3d(HRESULT hr) DECLSPEC_HIDDEN
unsigned int wined3dmapflags_from_ddrawmapflags(unsigned int flags) DECLSPEC_HIDDEN
static void ddraw_set_swapchain_window(struct ddraw *ddraw, HWND window)
static struct ddraw_surface * impl_from_IDirect3DTexture2(IDirect3DTexture2 *iface)
#define DDRAW_INVALID_HANDLE
#define DD_STRUCT_COPY_BYSIZE(to, from)
enum wined3d_format_id wined3dformat_from_ddrawformat(const DDPIXELFORMAT *format) DECLSPEC_HIDDEN
static struct ddraw_surface * impl_from_IDirectDrawSurface7(IDirectDrawSurface7 *iface)
static struct ddraw_surface * impl_from_IDirect3DTexture(IDirect3DTexture *iface)
struct ddraw_clipper * unsafe_impl_from_IDirectDrawClipper(IDirectDrawClipper *iface)
static void STDMETHODCALLTYPE view_wined3d_object_destroyed(void *parent)
void ddraw_update_lost_surfaces(struct ddraw *ddraw)
const GUID IID_D3DDEVICE_WineD3D
static struct ddraw_surface * unsafe_impl_from_IDirectDrawSurface2(IDirectDrawSurface2 *iface)
static HRESULT WINAPI ddraw_surface2_SetOverlayPosition(IDirectDrawSurface2 *iface, LONG x, LONG y)
static ULONG WINAPI ddraw_surface4_AddRef(IDirectDrawSurface4 *iface)
static HRESULT ddraw_surface_delete_attached_surface(struct ddraw_surface *surface, struct ddraw_surface *attachment, IUnknown *detach_iface)
static HRESULT WINAPI ddraw_surface3_PageUnlock(IDirectDrawSurface3 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface2_UpdateOverlay(IDirectDrawSurface2 *iface, RECT *src_rect, IDirectDrawSurface2 *dst_surface, RECT *dst_rect, DWORD flags, DDOVERLAYFX *fx)
static HRESULT WINAPI ddraw_surface2_QueryInterface(IDirectDrawSurface2 *iface, REFIID riid, void **object)
static const struct IDirect3DTexture2Vtbl d3d_texture2_vtbl
static HRESULT WINAPI ddraw_surface1_EnumOverlayZOrders(IDirectDrawSurface *iface, DWORD flags, void *context, LPDDENUMSURFACESCALLBACK callback)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface7_Blt(IDirectDrawSurface7 *iface, RECT *dst_rect, IDirectDrawSurface7 *src_surface, RECT *src_rect, DWORD flags, DDBLTFX *fx)
static HRESULT WINAPI ddraw_surface1_EnumAttachedSurfaces(IDirectDrawSurface *iface, void *context, LPDDENUMSURFACESCALLBACK callback)
static HRESULT WINAPI ddraw_surface1_Initialize(IDirectDrawSurface *iface, IDirectDraw *ddraw, DDSURFACEDESC *surface_desc)
static HRESULT WINAPI ddraw_surface3_GetDC(IDirectDrawSurface3 *iface, HDC *dc)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface2_Unlock(IDirectDrawSurface2 *iface, void *data)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface2_BltFast(IDirectDrawSurface2 *iface, DWORD dst_x, DWORD dst_y, IDirectDrawSurface2 *src_surface, RECT *src_rect, DWORD flags)
static HRESULT WINAPI ddraw_surface4_Lock(IDirectDrawSurface4 *iface, RECT *rect, DDSURFACEDESC2 *surface_desc, DWORD flags, HANDLE h)
static HRESULT WINAPI ddraw_surface4_GetClipper(IDirectDrawSurface4 *iface, IDirectDrawClipper **clipper)
static HRESULT WINAPI ddraw_surface2_DeleteAttachedSurface(IDirectDrawSurface2 *iface, DWORD flags, IDirectDrawSurface2 *attachment)
static HRESULT WINAPI ddraw_surface4_SetSurfaceDesc(IDirectDrawSurface4 *iface, DDSURFACEDESC2 *surface_desc, DWORD flags)
static HRESULT WINAPI ddraw_surface7_AddOverlayDirtyRect(IDirectDrawSurface7 *iface, RECT *Rect)
static HRESULT WINAPI ddraw_surface1_UpdateOverlay(IDirectDrawSurface *iface, RECT *src_rect, IDirectDrawSurface *dst_surface, RECT *dst_rect, DWORD flags, DDOVERLAYFX *fx)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface1_Blt(IDirectDrawSurface *iface, RECT *dst_rect, IDirectDrawSurface *src_surface, RECT *src_rect, DWORD flags, DDBLTFX *fx)
static HRESULT WINAPI ddraw_surface4_IsLost(IDirectDrawSurface4 *iface)
static HRESULT WINAPI d3d_texture1_Initialize(IDirect3DTexture *iface, IDirect3DDevice *device, IDirectDrawSurface *surface)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface7_BltBatch(IDirectDrawSurface7 *iface, DDBLTBATCH *Batch, DWORD Count, DWORD Flags)
static HRESULT WINAPI ddraw_surface7_Lock(IDirectDrawSurface7 *iface, RECT *rect, DDSURFACEDESC2 *surface_desc, DWORD flags, HANDLE h)
static struct ddraw_surface * impl_from_IDirectDrawGammaControl(IDirectDrawGammaControl *iface)
static HRESULT WINAPI ddraw_surface4_QueryInterface(IDirectDrawSurface4 *iface, REFIID riid, void **object)
static HRESULT WINAPI ddraw_surface2_EnumOverlayZOrders(IDirectDrawSurface2 *iface, DWORD flags, void *context, LPDDENUMSURFACESCALLBACK callback)
static HRESULT WINAPI ddraw_surface7_UpdateOverlay(IDirectDrawSurface7 *iface, RECT *src_rect, IDirectDrawSurface7 *dst_surface, RECT *dst_rect, DWORD flags, DDOVERLAYFX *fx)
static HRESULT WINAPI ddraw_surface1_DeleteAttachedSurface(IDirectDrawSurface *iface, DWORD flags, IDirectDrawSurface *attachment)
static HRESULT WINAPI ddraw_surface3_Lock(IDirectDrawSurface3 *iface, RECT *rect, DDSURFACEDESC *surface_desc, DWORD flags, HANDLE h)
static HRESULT WINAPI ddraw_surface1_SetClipper(IDirectDrawSurface *iface, IDirectDrawClipper *clipper)
static ULONG WINAPI ddraw_surface4_Release(IDirectDrawSurface4 *iface)
static HRESULT WINAPI ddraw_surface7_PageUnlock(IDirectDrawSurface7 *iface, DWORD Flags)
static HRESULT WINAPI ddraw_surface4_UpdateOverlayZOrder(IDirectDrawSurface4 *iface, DWORD flags, IDirectDrawSurface4 *reference)
static HRESULT WINAPI ddraw_surface4_AddAttachedSurface(IDirectDrawSurface4 *iface, IDirectDrawSurface4 *attachment)
struct ddraw_surface * unsafe_impl_from_IDirectDrawSurface4(IDirectDrawSurface4 *iface)
static HRESULT WINAPI ddraw_surface2_IsLost(IDirectDrawSurface2 *iface)
static HRESULT WINAPI ddraw_surface1_SetColorKey(IDirectDrawSurface *iface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI ddraw_surface2_Restore(IDirectDrawSurface2 *iface)
static const struct IDirectDrawGammaControlVtbl ddraw_gamma_control_vtbl
static HRESULT WINAPI ddraw_surface7_SetPriority(IDirectDrawSurface7 *iface, DWORD priority)
static HRESULT WINAPI ddraw_surface4_SetOverlayPosition(IDirectDrawSurface4 *iface, LONG x, LONG y)
static HRESULT WINAPI d3d_texture2_Load(IDirect3DTexture2 *iface, IDirect3DTexture2 *src_texture)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface3_Blt(IDirectDrawSurface3 *iface, RECT *dst_rect, IDirectDrawSurface3 *src_surface, RECT *src_rect, DWORD flags, DDBLTFX *fx)
static HRESULT WINAPI ddraw_surface4_PageLock(IDirectDrawSurface4 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface4_UpdateOverlayDisplay(IDirectDrawSurface4 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface7_DeleteAttachedSurface(IDirectDrawSurface7 *iface, DWORD flags, IDirectDrawSurface7 *attachment)
static HRESULT WINAPI ddraw_surface3_SetClipper(IDirectDrawSurface3 *iface, IDirectDrawClipper *clipper)
static HRESULT WINAPI ddraw_surface2_GetClipper(IDirectDrawSurface2 *iface, IDirectDrawClipper **clipper)
static HRESULT WINAPI ddraw_surface1_GetClipper(IDirectDrawSurface *iface, IDirectDrawClipper **clipper)
static const struct wined3d_parent_ops ddraw_texture_wined3d_parent_ops
static ULONG WINAPI ddraw_surface1_Release(IDirectDrawSurface *iface)
static HRESULT WINAPI ddraw_surface2_PageLock(IDirectDrawSurface2 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface4_GetCaps(IDirectDrawSurface4 *iface, DDSCAPS2 *caps)
static ULONG WINAPI ddraw_gamma_control_Release(IDirectDrawGammaControl *iface)
static ULONG ddraw_surface_release_iface(struct ddraw_surface *This)
static HRESULT WINAPI ddraw_surface1_GetSurfaceDesc(IDirectDrawSurface *iface, DDSURFACEDESC *DDSD)
static HRESULT WINAPI ddraw_surface3_UpdateOverlayDisplay(IDirectDrawSurface3 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface7_ReleaseDC(IDirectDrawSurface7 *iface, HDC hdc)
static HRESULT WINAPI ddraw_surface4_GetAttachedSurface(IDirectDrawSurface4 *iface, DDSCAPS2 *caps, IDirectDrawSurface4 **attachment)
static const struct IDirectDrawSurface2Vtbl ddraw_surface2_vtbl
static HRESULT WINAPI ddraw_surface7_SetPrivateData(IDirectDrawSurface7 *iface, REFGUID tag, void *data, DWORD size, DWORD flags)
static HRESULT WINAPI ddraw_surface7_AddAttachedSurface(IDirectDrawSurface7 *iface, IDirectDrawSurface7 *attachment)
static HRESULT WINAPI ddraw_surface1_GetOverlayPosition(IDirectDrawSurface *iface, LONG *x, LONG *y)
static HRESULT WINAPI ddraw_surface3_UpdateOverlayZOrder(IDirectDrawSurface3 *iface, DWORD flags, IDirectDrawSurface3 *reference)
static HRESULT WINAPI ddraw_surface2_UpdateOverlayZOrder(IDirectDrawSurface2 *iface, DWORD flags, IDirectDrawSurface2 *reference)
static HRESULT WINAPI ddraw_surface4_UpdateOverlay(IDirectDrawSurface4 *iface, RECT *src_rect, IDirectDrawSurface4 *dst_surface, RECT *dst_rect, DWORD flags, DDOVERLAYFX *fx)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface4_Blt(IDirectDrawSurface4 *iface, RECT *dst_rect, IDirectDrawSurface4 *src_surface, RECT *src_rect, DWORD flags, DDBLTFX *fx)
static HRESULT WINAPI ddraw_surface1_UpdateOverlayZOrder(IDirectDrawSurface *iface, DWORD flags, IDirectDrawSurface *reference)
static HRESULT WINAPI ddraw_surface3_GetBltStatus(IDirectDrawSurface3 *iface, DWORD flags)
static const struct IDirectDrawSurface3Vtbl ddraw_surface3_vtbl
static HRESULT WINAPI ddraw_surface3_EnumOverlayZOrders(IDirectDrawSurface3 *iface, DWORD flags, void *context, LPDDENUMSURFACESCALLBACK callback)
static HRESULT WINAPI ddraw_surface3_Restore(IDirectDrawSurface3 *iface)
static HRESULT WINAPI ddraw_surface1_AddAttachedSurface(IDirectDrawSurface *iface, IDirectDrawSurface *attachment)
static HRESULT WINAPI ddraw_surface1_GetPixelFormat(IDirectDrawSurface *iface, DDPIXELFORMAT *pixel_format)
static HRESULT WINAPI ddraw_surface2_PageUnlock(IDirectDrawSurface2 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface3_Initialize(IDirectDrawSurface3 *iface, IDirectDraw *ddraw, DDSURFACEDESC *surface_desc)
static HRESULT WINAPI ddraw_surface7_GetAttachedSurface(IDirectDrawSurface7 *iface, DDSCAPS2 *Caps, IDirectDrawSurface7 **Surface)
static HRESULT WINAPI ddraw_surface2_GetSurfaceDesc(IDirectDrawSurface2 *iface, DDSURFACEDESC *DDSD)
static HRESULT WINAPI ddraw_surface2_Lock(IDirectDrawSurface2 *iface, RECT *rect, DDSURFACEDESC *surface_desc, DWORD flags, HANDLE h)
static ULONG WINAPI ddraw_gamma_control_AddRef(IDirectDrawGammaControl *iface)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface2_Flip(IDirectDrawSurface2 *iface, IDirectDrawSurface2 *src, DWORD flags)
static ULONG WINAPI ddraw_surface2_Release(IDirectDrawSurface2 *iface)
static HRESULT WINAPI ddraw_surface3_GetOverlayPosition(IDirectDrawSurface3 *iface, LONG *x, LONG *y)
static HRESULT CALLBACK EnumCallback2(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *surface_desc, void *context)
static HRESULT WINAPI ddraw_surface4_DeleteAttachedSurface(IDirectDrawSurface4 *iface, DWORD flags, IDirectDrawSurface4 *attachment)
static HRESULT WINAPI ddraw_surface2_ReleaseDC(IDirectDrawSurface2 *iface, HDC dc)
HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_desc, struct ddraw_surface **surface, IUnknown *outer_unknown, unsigned int version)
static BOOL compare_format(DDPIXELFORMAT *format1, DDPIXELFORMAT *format2)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface4_Flip(IDirectDrawSurface4 *iface, IDirectDrawSurface4 *src, DWORD flags)
HRESULT ddraw_surface_update_frontbuffer(struct ddraw_surface *surface, const RECT *rect, BOOL read)
static HRESULT WINAPI ddraw_surface4_GetDC(IDirectDrawSurface4 *iface, HDC *dc)
static HRESULT WINAPI ddraw_surface3_GetCaps(IDirectDrawSurface3 *iface, DDSCAPS *caps)
static HRESULT WINAPI ddraw_surface7_UpdateOverlayDisplay(IDirectDrawSurface7 *iface, DWORD Flags)
static HRESULT WINAPI ddraw_surface3_SetSurfaceDesc(IDirectDrawSurface3 *iface, DDSURFACEDESC *surface_desc, DWORD flags)
static HRESULT WINAPI ddraw_surface2_EnumAttachedSurfaces(IDirectDrawSurface2 *iface, void *context, LPDDENUMSURFACESCALLBACK callback)
static struct ddraw_surface * get_sub_mimaplevel(struct ddraw_surface *surface)
static HRESULT WINAPI ddraw_surface3_PageLock(IDirectDrawSurface3 *iface, DWORD flags)
static struct IDirectDrawSurfaceVtbl ddraw_surface1_vtbl
static void STDMETHODCALLTYPE ddraw_texture_wined3d_object_destroyed(void *parent)
static ULONG WINAPI ddraw_surface3_Release(IDirectDrawSurface3 *iface)
struct wined3d_rendertarget_view * ddraw_surface_get_rendertarget_view(struct ddraw_surface *surface)
static HRESULT WINAPI ddraw_surface4_GetDDInterface(IDirectDrawSurface4 *iface, void **ddraw)
static ULONG WINAPI d3d_texture1_AddRef(IDirect3DTexture *iface)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface1_Unlock(IDirectDrawSurface *iface, void *data)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface1_BltFast(IDirectDrawSurface *iface, DWORD dst_x, DWORD dst_y, IDirectDrawSurface *src_surface, RECT *src_rect, DWORD flags)
static HRESULT WINAPI ddraw_surface1_Lock(IDirectDrawSurface *iface, RECT *rect, DDSURFACEDESC *surface_desc, DWORD flags, HANDLE h)
static ULONG WINAPI d3d_texture2_Release(IDirect3DTexture2 *iface)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface7_Flip(IDirectDrawSurface7 *iface, IDirectDrawSurface7 *src, DWORD flags)
static const struct IDirectDrawSurface4Vtbl ddraw_surface4_vtbl
static HRESULT WINAPI ddraw_surface2_GetPixelFormat(IDirectDrawSurface2 *iface, DDPIXELFORMAT *pixel_format)
static HRESULT WINAPI ddraw_surface3_AddAttachedSurface(IDirectDrawSurface3 *iface, IDirectDrawSurface3 *attachment)
static HRESULT WINAPI d3d_texture1_PaletteChanged(IDirect3DTexture *iface, DWORD start, DWORD count)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface3_Flip(IDirectDrawSurface3 *iface, IDirectDrawSurface3 *src, DWORD flags)
static HRESULT WINAPI ddraw_surface4_EnumOverlayZOrders(IDirectDrawSurface4 *iface, DWORD flags, void *context, LPDDENUMSURFACESCALLBACK2 callback)
static HRESULT ddraw_surface_blt_clipped(struct ddraw_surface *dst_surface, const RECT *dst_rect_in, struct ddraw_surface *src_surface, const RECT *src_rect_in, DWORD flags, DWORD fill_colour, const struct wined3d_blt_fx *fx, enum wined3d_texture_filter_type filter)
static HRESULT WINAPI ddraw_surface1_GetCaps(IDirectDrawSurface *iface, DDSCAPS *caps)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface2_Blt(IDirectDrawSurface2 *iface, RECT *dst_rect, IDirectDrawSurface2 *src_surface, RECT *src_rect, DWORD flags, DDBLTFX *fx)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface4_Unlock(IDirectDrawSurface4 *iface, RECT *pRect)
static HRESULT WINAPI ddraw_surface1_Restore(IDirectDrawSurface *iface)
static HRESULT WINAPI ddraw_surface7_GetLOD(IDirectDrawSurface7 *iface, DWORD *MaxLOD)
static HRESULT WINAPI ddraw_surface7_GetFlipStatus(IDirectDrawSurface7 *iface, DWORD Flags)
static HRESULT WINAPI ddraw_surface1_GetBltStatus(IDirectDrawSurface *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface2_UpdateOverlayDisplay(IDirectDrawSurface2 *iface, DWORD flags)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface1_Flip(IDirectDrawSurface *iface, IDirectDrawSurface *src, DWORD flags)
static HRESULT WINAPI ddraw_surface2_GetDDInterface(IDirectDrawSurface2 *iface, void **ddraw)
static HRESULT WINAPI ddraw_surface4_ReleaseDC(IDirectDrawSurface4 *iface, HDC dc)
static HRESULT WINAPI ddraw_surface3_GetAttachedSurface(IDirectDrawSurface3 *iface, DDSCAPS *caps, IDirectDrawSurface3 **attachment)
static HRESULT WINAPI ddraw_surface7_GetDC(IDirectDrawSurface7 *iface, HDC *dc)
static HRESULT WINAPI ddraw_surface7_SetColorKey(IDirectDrawSurface7 *iface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI ddraw_surface2_GetFlipStatus(IDirectDrawSurface2 *iface, DWORD flags)
struct ddraw_surface * unsafe_impl_from_IDirectDrawSurface7(IDirectDrawSurface7 *iface)
static HRESULT WINAPI ddraw_surface7_GetColorKey(IDirectDrawSurface7 *iface, DWORD Flags, DDCOLORKEY *CKey)
static HRESULT WINAPI ddraw_surface1_GetDC(IDirectDrawSurface *iface, HDC *dc)
static HRESULT WINAPI ddraw_surface7_GetOverlayPosition(IDirectDrawSurface7 *iface, LONG *x, LONG *y)
static HRESULT WINAPI ddraw_surface1_GetAttachedSurface(IDirectDrawSurface *iface, DDSCAPS *caps, IDirectDrawSurface **attachment)
static HRESULT WINAPI ddraw_surface2_GetBltStatus(IDirectDrawSurface2 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface2_AddAttachedSurface(IDirectDrawSurface2 *iface, IDirectDrawSurface2 *attachment)
static HRESULT WINAPI ddraw_surface1_GetColorKey(IDirectDrawSurface *iface, DWORD flags, DDCOLORKEY *color_key)
struct ddraw_surface * unsafe_impl_from_IDirect3DTexture(IDirect3DTexture *iface)
static HRESULT WINAPI ddraw_surface1_SetOverlayPosition(IDirectDrawSurface *iface, LONG x, LONG y)
static HRESULT WINAPI ddraw_surface4_EnumAttachedSurfaces(IDirectDrawSurface4 *iface, void *context, LPDDENUMSURFACESCALLBACK2 callback)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface3_BltFast(IDirectDrawSurface3 *iface, DWORD dst_x, DWORD dst_y, IDirectDrawSurface3 *src_surface, RECT *src_rect, DWORD flags)
static HRESULT WINAPI ddraw_surface2_GetAttachedSurface(IDirectDrawSurface2 *iface, DDSCAPS *caps, IDirectDrawSurface2 **attachment)
static HRESULT WINAPI ddraw_surface7_GetSurfaceDesc(IDirectDrawSurface7 *iface, DDSURFACEDESC2 *DDSD)
static ULONG WINAPI d3d_texture2_AddRef(IDirect3DTexture2 *iface)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD dst_x, DWORD dst_y, IDirectDrawSurface7 *src_surface, RECT *src_rect, DWORD trans)
static HRESULT WINAPI ddraw_surface3_GetColorKey(IDirectDrawSurface3 *iface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI ddraw_surface7_SetClipper(IDirectDrawSurface7 *iface, IDirectDrawClipper *iclipper)
static const struct IDirect3DTextureVtbl d3d_texture1_vtbl
static HRESULT WINAPI ddraw_surface4_SetColorKey(IDirectDrawSurface4 *iface, DWORD flags, DDCOLORKEY *color_key)
static void ddraw_surface_cleanup(struct ddraw_surface *surface)
static HRESULT WINAPI ddraw_surface7_GetPixelFormat(IDirectDrawSurface7 *iface, DDPIXELFORMAT *PixelFormat)
static HRESULT WINAPI ddraw_surface4_SetPalette(IDirectDrawSurface4 *iface, IDirectDrawPalette *palette)
static ULONG WINAPI ddraw_surface7_Release(IDirectDrawSurface7 *iface)
static HRESULT WINAPI ddraw_surface1_QueryInterface(IDirectDrawSurface *iface, REFIID riid, void **object)
static HRESULT WINAPI ddraw_surface1_UpdateOverlayDisplay(IDirectDrawSurface *iface, DWORD flags)
static HRESULT ddraw_surface_set_color_key(struct ddraw_surface *surface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface3_BltBatch(IDirectDrawSurface3 *iface, DDBLTBATCH *batch, DWORD count, DWORD flags)
static HRESULT WINAPI ddraw_surface7_GetUniquenessValue(IDirectDrawSurface7 *iface, DWORD *pValue)
static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface, REFIID riid, void **obj)
static const struct wined3d_parent_ops ddraw_view_wined3d_parent_ops
static HRESULT surface_lock(struct ddraw_surface *surface, RECT *rect, DDSURFACEDESC2 *surface_desc, unsigned int surface_desc_size, DWORD flags, HANDLE h)
static ULONG WINAPI d3d_texture1_Release(IDirect3DTexture *iface)
static HRESULT WINAPI ddraw_surface7_SetLOD(IDirectDrawSurface7 *iface, DWORD MaxLOD)
static HRESULT WINAPI ddraw_surface4_GetColorKey(IDirectDrawSurface4 *iface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI ddraw_surface4_GetSurfaceDesc(IDirectDrawSurface4 *iface, DDSURFACEDESC2 *DDSD)
static HRESULT WINAPI ddraw_surface3_GetFlipStatus(IDirectDrawSurface3 *iface, DWORD flags)
static const struct IDirectDrawSurface7Vtbl ddraw_surface7_vtbl
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface4_BltFast(IDirectDrawSurface4 *iface, DWORD dst_x, DWORD dst_y, IDirectDrawSurface4 *src_surface, RECT *src_rect, DWORD flags)
static HRESULT WINAPI ddraw_surface7_GetPalette(IDirectDrawSurface7 *iface, IDirectDrawPalette **palette)
static HRESULT ddraw_surface_set_palette(struct ddraw_surface *surface, IDirectDrawPalette *palette)
static HRESULT WINAPI ddraw_surface3_GetSurfaceDesc(IDirectDrawSurface3 *iface, DDSURFACEDESC *surface_desc)
static ULONG WINAPI ddraw_surface3_AddRef(IDirectDrawSurface3 *iface)
static HRESULT WINAPI ddraw_surface4_PageUnlock(IDirectDrawSurface4 *iface, DWORD flags)
static HRESULT WINAPI ddraw_surface3_AddOverlayDirtyRect(IDirectDrawSurface3 *iface, RECT *rect)
static HRESULT WINAPI ddraw_surface3_GetPixelFormat(IDirectDrawSurface3 *iface, DDPIXELFORMAT *pixel_format)
struct ddraw_surface * unsafe_impl_from_IDirectDrawSurface(IDirectDrawSurface *iface)
static HRESULT WINAPI ddraw_surface4_GetFlipStatus(IDirectDrawSurface4 *iface, DWORD flags)
static HRESULT ddraw_surface_attach_surface(struct ddraw_surface *This, struct ddraw_surface *Surf)
static void ddraw_surface_add_iface(struct ddraw_surface *surface)
static HRESULT WINAPI ddraw_surface7_SetOverlayPosition(IDirectDrawSurface7 *iface, LONG x, LONG y)
static HRESULT WINAPI ddraw_surface3_GetClipper(IDirectDrawSurface3 *iface, IDirectDrawClipper **clipper)
static HRESULT WINAPI ddraw_surface7_ChangeUniquenessValue(IDirectDrawSurface7 *iface)
static HRESULT WINAPI ddraw_surface3_UpdateOverlay(IDirectDrawSurface3 *iface, RECT *src_rect, IDirectDrawSurface3 *dst_surface, RECT *dst_rect, DWORD flags, DDOVERLAYFX *fx)
static HRESULT WINAPI ddraw_gamma_control_SetGammaRamp(IDirectDrawGammaControl *iface, DWORD flags, DDGAMMARAMP *gamma_ramp)
static HRESULT CDECL ddraw_reset_enum_callback(struct wined3d_resource *resource)
static HRESULT WINAPI ddraw_surface7_EnumOverlayZOrders(IDirectDrawSurface7 *iface, DWORD Flags, void *context, LPDDENUMSURFACESCALLBACK7 cb)
struct ddraw_surface * unsafe_impl_from_IDirect3DTexture2(IDirect3DTexture2 *iface)
static HRESULT WINAPI ddraw_surface3_GetPalette(IDirectDrawSurface3 *iface, IDirectDrawPalette **palette)
static ULONG WINAPI ddraw_surface1_AddRef(IDirectDrawSurface *iface)
static HRESULT WINAPI ddraw_surface4_GetPalette(IDirectDrawSurface4 *iface, IDirectDrawPalette **palette)
static HRESULT WINAPI ddraw_surface3_EnumAttachedSurfaces(IDirectDrawSurface3 *iface, void *context, LPDDENUMSURFACESCALLBACK callback)
static HRESULT WINAPI ddraw_surface3_ReleaseDC(IDirectDrawSurface3 *iface, HDC dc)
static HRESULT WINAPI d3d_texture1_Load(IDirect3DTexture *iface, IDirect3DTexture *src_texture)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface2_BltBatch(IDirectDrawSurface2 *iface, DDBLTBATCH *batch, DWORD count, DWORD flags)
static HRESULT WINAPI ddraw_surface7_GetCaps(IDirectDrawSurface7 *iface, DDSCAPS2 *Caps)
static HRESULT ddraw_surface_blt(struct ddraw_surface *dst_surface, const RECT *dst_rect, struct ddraw_surface *src_surface, const RECT *src_rect, DWORD flags, DWORD fill_colour, const struct wined3d_blt_fx *fx, enum wined3d_texture_filter_type filter)
static HRESULT WINAPI ddraw_surface7_SetPalette(IDirectDrawSurface7 *iface, IDirectDrawPalette *palette)
static HRESULT WINAPI ddraw_surface4_GetPixelFormat(IDirectDrawSurface4 *iface, DDPIXELFORMAT *pixel_format)
static HRESULT WINAPI d3d_texture2_GetHandle(IDirect3DTexture2 *iface, IDirect3DDevice2 *device, D3DTEXTUREHANDLE *handle)
static HRESULT WINAPI ddraw_surface4_Restore(IDirectDrawSurface4 *iface)
static HRESULT WINAPI ddraw_surface7_IsLost(IDirectDrawSurface7 *iface)
static HRESULT WINAPI ddraw_surface4_GetPrivateData(IDirectDrawSurface4 *iface, REFGUID tag, void *data, DWORD *size)
static ULONG WINAPI ddraw_surface7_AddRef(IDirectDrawSurface7 *iface)
static HRESULT WINAPI ddraw_surface4_GetUniquenessValue(IDirectDrawSurface4 *iface, DWORD *pValue)
static HRESULT WINAPI ddraw_surface2_SetPalette(IDirectDrawSurface2 *iface, IDirectDrawPalette *palette)
static HRESULT WINAPI ddraw_surface7_UpdateOverlayZOrder(IDirectDrawSurface7 *iface, DWORD flags, IDirectDrawSurface7 *reference)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface7_Unlock(IDirectDrawSurface7 *iface, RECT *pRect)
static HRESULT WINAPI d3d_texture1_Unload(IDirect3DTexture *iface)
static struct ddraw_surface * unsafe_impl_from_IDirectDrawSurface3(IDirectDrawSurface3 *iface)
static HRESULT WINAPI d3d_texture2_QueryInterface(IDirect3DTexture2 *iface, REFIID riid, void **object)
static HRESULT WINAPI ddraw_surface4_FreePrivateData(IDirectDrawSurface4 *iface, REFGUID tag)
static HRESULT WINAPI ddraw_surface3_SetPalette(IDirectDrawSurface3 *iface, IDirectDrawPalette *palette)
static HRESULT CALLBACK EnumCallback(IDirectDrawSurface7 *surface, DDSURFACEDESC2 *surface_desc, void *context)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface4_BltBatch(IDirectDrawSurface4 *iface, DDBLTBATCH *batch, DWORD count, DWORD flags)
static HRESULT WINAPI ddraw_surface3_IsLost(IDirectDrawSurface3 *iface)
static HRESULT WINAPI ddraw_surface1_SetPalette(IDirectDrawSurface *iface, IDirectDrawPalette *palette)
static HRESULT WINAPI ddraw_surface1_GetPalette(IDirectDrawSurface *iface, IDirectDrawPalette **palette)
static void STDMETHODCALLTYPE ddraw_surface_wined3d_object_destroyed(void *parent)
static HRESULT WINAPI ddraw_surface3_SetColorKey(IDirectDrawSurface3 *iface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI d3d_texture1_QueryInterface(IDirect3DTexture *iface, REFIID riid, void **object)
static HRESULT WINAPI ddraw_surface3_GetDDInterface(IDirectDrawSurface3 *iface, void **ddraw)
static HRESULT WINAPI ddraw_surface4_Initialize(IDirectDrawSurface4 *iface, IDirectDraw *ddraw, DDSURFACEDESC2 *surface_desc)
static const struct wined3d_parent_ops ddraw_surface_wined3d_parent_ops
static HRESULT WINAPI ddraw_surface2_GetCaps(IDirectDrawSurface2 *iface, DDSCAPS *caps)
static HRESULT WINAPI ddraw_surface7_FreePrivateData(IDirectDrawSurface7 *iface, REFGUID tag)
static HRESULT WINAPI ddraw_surface1_GetFlipStatus(IDirectDrawSurface *iface, DWORD flags)
static HRESULT WINAPI ddraw_gamma_control_QueryInterface(IDirectDrawGammaControl *iface, REFIID riid, void **object)
void ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, const struct wined3d_parent_ops **parent_ops)
static HRESULT WINAPI ddraw_surface2_GetColorKey(IDirectDrawSurface2 *iface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI ddraw_surface2_Initialize(IDirectDrawSurface2 *iface, IDirectDraw *ddraw, DDSURFACEDESC *surface_desc)
static HRESULT WINAPI ddraw_surface2_GetPalette(IDirectDrawSurface2 *iface, IDirectDrawPalette **palette)
static HRESULT WINAPI ddraw_surface7_GetPrivateData(IDirectDrawSurface7 *iface, REFGUID tag, void *data, DWORD *size)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface1_BltBatch(IDirectDrawSurface *iface, DDBLTBATCH *batch, DWORD count, DWORD flags)
static ULONG WINAPI ddraw_surface2_AddRef(IDirectDrawSurface2 *iface)
static HRESULT WINAPI ddraw_surface7_GetClipper(IDirectDrawSurface7 *iface, IDirectDrawClipper **Clipper)
static HRESULT WINAPI ddraw_surface2_SetClipper(IDirectDrawSurface2 *iface, IDirectDrawClipper *clipper)
static HRESULT WINAPI ddraw_surface1_IsLost(IDirectDrawSurface *iface)
static HRESULT WINAPI ddraw_surface1_ReleaseDC(IDirectDrawSurface *iface, HDC dc)
static HRESULT WINAPI ddraw_surface7_SetSurfaceDesc(IDirectDrawSurface7 *iface, DDSURFACEDESC2 *DDSD, DWORD Flags)
static HRESULT WINAPI ddraw_surface7_PageLock(IDirectDrawSurface7 *iface, DWORD Flags)
static HRESULT WINAPI ddraw_surface2_SetColorKey(IDirectDrawSurface2 *iface, DWORD flags, DDCOLORKEY *color_key)
static HRESULT WINAPI ddraw_surface7_GetPriority(IDirectDrawSurface7 *iface, DWORD *priority)
static HRESULT WINAPI ddraw_surface1_AddOverlayDirtyRect(IDirectDrawSurface *iface, RECT *rect)
static HRESULT WINAPI ddraw_surface4_AddOverlayDirtyRect(IDirectDrawSurface4 *iface, RECT *rect)
static HRESULT WINAPI ddraw_surface4_GetOverlayPosition(IDirectDrawSurface4 *iface, LONG *x, LONG *y)
static HRESULT WINAPI ddraw_gamma_control_GetGammaRamp(IDirectDrawGammaControl *iface, DWORD flags, DDGAMMARAMP *gamma_ramp)
static HRESULT WINAPI ddraw_surface7_EnumAttachedSurfaces(IDirectDrawSurface7 *iface, void *context, LPDDENUMSURFACESCALLBACK7 cb)
static HRESULT WINAPI DECLSPEC_HOTPATCH ddraw_surface3_Unlock(IDirectDrawSurface3 *iface, void *data)
static HRESULT WINAPI ddraw_surface4_GetBltStatus(IDirectDrawSurface4 *iface, DWORD flags)
static HRESULT WINAPI d3d_texture1_GetHandle(IDirect3DTexture *iface, IDirect3DDevice *device, D3DTEXTUREHANDLE *handle)
static HRESULT WINAPI ddraw_surface2_GetDC(IDirectDrawSurface2 *iface, HDC *dc)
static HRESULT WINAPI ddraw_surface3_DeleteAttachedSurface(IDirectDrawSurface3 *iface, DWORD flags, IDirectDrawSurface3 *attachment)
static HRESULT WINAPI ddraw_surface7_Initialize(IDirectDrawSurface7 *iface, IDirectDraw *ddraw, DDSURFACEDESC2 *surface_desc)
static HRESULT WINAPI ddraw_surface7_GetBltStatus(IDirectDrawSurface7 *iface, DWORD Flags)
static HRESULT WINAPI d3d_texture2_PaletteChanged(IDirect3DTexture2 *iface, DWORD start, DWORD count)
static HRESULT WINAPI ddraw_surface4_ChangeUniquenessValue(IDirectDrawSurface4 *iface)
static HRESULT WINAPI ddraw_surface2_AddOverlayDirtyRect(IDirectDrawSurface2 *iface, RECT *rect)
static HRESULT WINAPI ddraw_surface7_Restore(IDirectDrawSurface7 *iface)
static HRESULT WINAPI ddraw_surface2_GetOverlayPosition(IDirectDrawSurface2 *iface, LONG *x, LONG *y)
static HRESULT WINAPI ddraw_surface3_SetOverlayPosition(IDirectDrawSurface3 *iface, LONG x, LONG y)
static HRESULT WINAPI ddraw_surface3_QueryInterface(IDirectDrawSurface3 *iface, REFIID riid, void **object)
static BOOL surface_validate_lock_desc(struct ddraw_surface *surface, const DDSURFACEDESC *desc, unsigned int *size)
static HRESULT WINAPI ddraw_surface7_GetDDInterface(IDirectDrawSurface7 *iface, void **DD)
static HRESULT WINAPI ddraw_surface4_SetClipper(IDirectDrawSurface4 *iface, IDirectDrawClipper *clipper)
static HRESULT WINAPI ddraw_surface4_SetPrivateData(IDirectDrawSurface4 *iface, REFGUID tag, void *data, DWORD size, DWORD flags)
HRESULT CDECL wined3d_device_set_rendertarget_view(struct wined3d_device *device, unsigned int view_idx, struct wined3d_rendertarget_view *view, BOOL set_viewport)
struct wined3d_rendertarget_view *CDECL wined3d_device_get_rendertarget_view(const struct wined3d_device *device, unsigned int view_idx)
HRESULT CDECL wined3d_device_clear_rendertarget_view(struct wined3d_device *device, struct wined3d_rendertarget_view *view, const RECT *rect, DWORD flags, const struct wined3d_color *color, float depth, DWORD stencil)
ULONG CDECL wined3d_device_decref(struct wined3d_device *device)
HRESULT CDECL wined3d_device_reset(struct wined3d_device *device, const struct wined3d_swapchain_desc *swapchain_desc, const struct wined3d_display_mode *mode, wined3d_device_reset_cb callback, BOOL reset_state)
void CDECL wined3d_device_set_depth_stencil_view(struct wined3d_device *device, struct wined3d_rendertarget_view *view)
struct wined3d_rendertarget_view *CDECL wined3d_device_get_depth_stencil_view(const struct wined3d_device *device)
void CDECL wined3d_device_set_render_state(struct wined3d_device *device, enum wined3d_render_state state, DWORD value)
void CDECL wined3d_device_set_gamma_ramp(const struct wined3d_device *device, UINT swapchain_idx, DWORD flags, const struct wined3d_gamma_ramp *ramp)
void CDECL wined3d_device_get_gamma_ramp(const struct wined3d_device *device, UINT swapchain_idx, struct wined3d_gamma_ramp *ramp)
ULONG CDECL wined3d_device_incref(struct wined3d_device *device)
void CDECL wined3d_palette_apply_to_dc(const struct wined3d_palette *palette, HDC dc)
DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWORD priority)
DWORD CDECL wined3d_resource_get_priority(const struct wined3d_resource *resource)
HRESULT CDECL wined3d_resource_unmap(struct wined3d_resource *resource, unsigned int sub_resource_idx)
void CDECL wined3d_resource_set_parent(struct wined3d_resource *resource, void *parent)
HRESULT CDECL wined3d_resource_map(struct wined3d_resource *resource, unsigned int sub_resource_idx, struct wined3d_map_desc *map_desc, const struct wined3d_box *box, DWORD flags)
HRESULT CDECL wined3d_texture_get_overlay_position(const struct wined3d_texture *texture, unsigned int sub_resource_idx, LONG *x, LONG *y)
DWORD CDECL wined3d_texture_set_lod(struct wined3d_texture *texture, DWORD lod)
void *CDECL wined3d_texture_get_parent(const struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_get_dc(struct wined3d_texture *texture, unsigned int sub_resource_idx, HDC *dc)
HRESULT CDECL wined3d_texture_get_sub_resource_desc(const struct wined3d_texture *texture, unsigned int sub_resource_idx, struct wined3d_sub_resource_desc *desc)
void CDECL wined3d_texture_set_sub_resource_parent(struct wined3d_texture *texture, unsigned int sub_resource_idx, void *parent)
DWORD CDECL wined3d_texture_get_lod(const struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_create(struct wined3d_device *device, const struct wined3d_resource_desc *desc, UINT layer_count, UINT level_count, DWORD flags, const struct wined3d_sub_resource_data *data, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_texture **texture)
void *CDECL wined3d_texture_get_sub_resource_parent(struct wined3d_texture *texture, unsigned int sub_resource_idx)
struct wined3d_resource *CDECL wined3d_texture_get_resource(struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_update_desc(struct wined3d_texture *texture, UINT width, UINT height, enum wined3d_format_id format_id, enum wined3d_multisample_type multisample_type, UINT multisample_quality, void *mem, UINT pitch)
ULONG CDECL wined3d_texture_decref(struct wined3d_texture *texture)
ULONG CDECL wined3d_texture_incref(struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_release_dc(struct wined3d_texture *texture, unsigned int sub_resource_idx, HDC dc)
HRESULT CDECL wined3d_texture_set_overlay_position(struct wined3d_texture *texture, unsigned int sub_resource_idx, LONG x, LONG y)
HRESULT CDECL wined3d_texture_set_color_key(struct wined3d_texture *texture, DWORD flags, const struct wined3d_color_key *color_key)
HRESULT CDECL wined3d_texture_blt(struct wined3d_texture *dst_texture, unsigned int dst_sub_resource_idx, const RECT *dst_rect, struct wined3d_texture *src_texture, unsigned int src_sub_resource_idx, const RECT *src_rect, DWORD flags, const struct wined3d_blt_fx *fx, enum wined3d_texture_filter_type filter)
HRESULT CDECL wined3d_texture_update_overlay(struct wined3d_texture *texture, unsigned int sub_resource_idx, const RECT *src_rect, struct wined3d_texture *dst_texture, unsigned int dst_sub_resource_idx, const RECT *dst_rect, DWORD flags)
void CDECL wined3d_texture_get_pitch(const struct wined3d_texture *texture, unsigned int level, unsigned int *row_pitch, unsigned int *slice_pitch)
HRESULT CDECL wined3d_rendertarget_view_create_from_sub_resource(struct wined3d_texture *texture, unsigned int sub_resource_idx, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_rendertarget_view **view)
ULONG CDECL wined3d_rendertarget_view_incref(struct wined3d_rendertarget_view *view)
void CDECL wined3d_rendertarget_view_set_parent(struct wined3d_rendertarget_view *view, void *parent)
ULONG CDECL wined3d_rendertarget_view_decref(struct wined3d_rendertarget_view *view)
static const WCHAR version[]
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei count
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble r
GLint GLint GLsizei width
GLdouble GLdouble GLdouble GLdouble top
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLubyte GLubyte GLubyte GLubyte w
GLsizeiptr const GLvoid GLenum usage
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
#define memcpy(s1, s2, n)
struct task_struct * current
static IPrintDialogCallback callback
static const WCHAR desc[]
static HMODULE MODULEINFO DWORD cb
static float(__cdecl *square_half_float)(float x
#define IsEqualGUID(rguid1, rguid2)
DWORD IDirectDrawSurface7
#define DDPCAPS_PRIMARYSURFACE
#define DDSCAPS2_CUBEMAP_NEGATIVEZ
#define DDSCAPS_FRONTBUFFER
#define DDSCAPS_ALLOCONLOAD
#define DDERR_NOTAOVERLAYSURFACE
#define DDCKEY_COLORSPACE
#define DDSCAPS2_CUBEMAP_ALLFACES
#define DDBLT_ZBUFFERDESTOVERRIDE
#define DDERR_INVALIDRECT
#define DDBLT_KEYDESTOVERRIDE
#define DDBLT_ZBUFFERDESTCONSTOVERRIDE
struct _DDSURFACEDESC2 DDSURFACEDESC2
#define DDERR_INVALIDPIXELFORMAT
#define DDBLT_ALPHAEDGEBLEND
#define DDERR_NOTFLIPPABLE
#define DDSCAPS2_CUBEMAP_POSITIVEX
#define DDSCAPS_PRIMARYSURFACE
#define DDERR_INVALIDCAPS
#define DDERR_INVALIDOBJECT
#define DDERR_CANNOTATTACHSURFACE
#define DDBLT_ZBUFFERSRCCONSTOVERRIDE
#define DDBLT_ALPHADESTSURFACEOVERRIDE
#define DDSD_CKDESTOVERLAY
#define DDERR_SURFACELOST
#define DDBLT_ZBUFFERSRCOVERRIDE
#define DDERR_NOOVERLAYHW
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID)
#define DDSCAPS2_MIPMAPSUBLEVEL
#define DDCKEY_SRCOVERLAY
#define DDCKEY_DESTOVERLAY
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID)
#define DDERR_NOEXCLUSIVEMODE
#define DDERR_OVERLAYNOTVISIBLE
#define DDBLTFAST_SRCCOLORKEY
#define DDERR_OUTOFMEMORY
#define DDSCAPS2_D3DTEXTUREMANAGE
#define DDSCAPS_OFFSCREENPLAIN
#define DDERR_CANTCREATEDC
#define DDERR_NOPALETTEATTACHED
#define DDBLTFAST_DESTCOLORKEY
#define DDERR_SURFACENOTATTACHED
#define DDERR_NOTONMIPMAPSUBLEVEL
#define DDSCAPS_BACKBUFFER
#define DDBLT_ALPHASRCNEG
#define DDSCAPS2_CUBEMAP_NEGATIVEY
#define DDERR_NOCOLORKEYHW
#define DDERR_UNSUPPORTED
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID)
#define DDSCAPS2_CUBEMAP_POSITIVEY
#define DDSCAPS2_CUBEMAP_NEGATIVEX
#define DDERR_NOCLIPPERATTACHED
#define DDSCAPS2_TEXTUREMANAGE
#define DDSCAPS2_CUBEMAP_POSITIVEZ
#define DDERR_INVALIDPARAMS
#define DDSCAPS_VIDEOMEMORY
#define DDERR_DCALREADYCREATED
#define DDBLT_KEYSRCOVERRIDE
#define DDSCAPS_LOCALVIDMEM
#define DDBLT_ALPHADESTNEG
#define DDERR_NORASTEROPHW
#define DDERR_SURFACEALREADYATTACHED
#define DDERR_ALREADYINITIALIZED
#define DDERR_CANNOTDETACHSURFACE
#define DDERR_SURFACEBUSY
#define DDBLTFAST_DONOTWAIT
#define DDSCAPS_SYSTEMMEMORY
#define DDBLT_ALPHADESTCONSTOVERRIDE
#define DDSD_BACKBUFFERCOUNT
#define DDBLT_ALPHASRCCONSTOVERRIDE
#define DDERR_INVALIDSURFACETYPE
#define DDBLT_ALPHASRCSURFACEOVERRIDE
#define DDERR_BLTFASTCANTCLIP
#define DDSD_CKSRCOVERLAY
#define DECLSPEC_HOTPATCH
DDPIXELFORMAT ddpfPixelFormat
DDCOLORKEY ddckCKDestOverlay
DDCOLORKEY ddckCKSrcOverlay
LPDDENUMSURFACESCALLBACK2 callback
LPDDENUMSURFACESCALLBACK callback
struct ddraw_handle_table handle_table
IDirect3DDevice2 IDirect3DDevice2_iface
IDirectDrawClipper IDirectDrawClipper_iface
struct wined3d_palette * wined3d_palette
IDirectDrawPalette IDirectDrawPalette_iface
IDirectDrawSurface IDirectDrawSurface_iface
IDirectDrawSurface2 IDirectDrawSurface2_iface
struct ddraw_clipper * clipper
IDirectDrawGammaControl IDirectDrawGammaControl_iface
DDSURFACEDESC2 surface_desc
IUnknown * attached_iface
struct wined3d_private_store private_store
IDirectDrawSurface3 IDirectDrawSurface3_iface
struct ddraw_surface * first_attached
struct wined3d_rendertarget_view * wined3d_rtv
unsigned int sub_resource_idx
IDirect3DTexture IDirect3DTexture_iface
struct d3d_device * device1
struct ddraw_palette * palette
IDirectDrawSurface7 IDirectDrawSurface7_iface
struct ddraw_surface * next_attached
struct list surface_list_entry
IUnknown * ifaceToRelease
IDirectDrawSurface4 IDirectDrawSurface4_iface
struct ddraw_surface * complex_array[MAX_COMPLEX_ATTACHED]
struct wined3d_texture * wined3d_texture
IDirect3DTexture2 IDirect3DTexture2_iface
DDSURFACEDESC2 surface_desc
struct ddraw_surface * primary
struct wined3d_device * wined3d_device
struct wined3d_texture * wined3d_frontbuffer
struct wined3d_swapchain * wined3d_swapchain
struct wined3d_color_key src_color_key
struct wined3d_color_key dst_color_key
union wined3d_private_data::@3771 content
enum wined3d_resource_type resource_type
enum wined3d_multisample_type multisample_type
unsigned int multisample_quality
enum wined3d_format_id format
enum wined3d_format_id format
enum wined3d_format_id backbuffer_format
BOOL enable_auto_depth_stencil
#define CONTAINING_RECORD(address, type, field)
UINT CDECL wined3d_calculate_format_pitch(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_format_id format_id, UINT width)
HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, enum wined3d_format_id adapter_format_id, DWORD usage, enum wined3d_resource_type resource_type, enum wined3d_format_id check_format_id)
HRESULT CDECL wined3d_get_adapter_display_mode(const struct wined3d *wined3d, UINT adapter_idx, struct wined3d_display_mode *mode, enum wined3d_display_rotation *rotation)
void CDECL wined3d_swapchain_get_desc(const struct wined3d_swapchain *swapchain, struct wined3d_swapchain_desc *desc)
void CDECL wined3d_swapchain_set_window(struct wined3d_swapchain *swapchain, HWND window)
void CDECL wined3d_swapchain_set_palette(struct wined3d_swapchain *swapchain, struct wined3d_palette *palette)
HRESULT CDECL wined3d_swapchain_get_display_mode(const struct wined3d_swapchain *swapchain, struct wined3d_display_mode *mode, enum wined3d_display_rotation *rotation)
@ WINED3D_CUBEMAP_FACE_NEGATIVE_Z
@ WINED3D_CUBEMAP_FACE_NEGATIVE_X
@ WINED3D_CUBEMAP_FACE_POSITIVE_Z
@ WINED3D_CUBEMAP_FACE_POSITIVE_X
@ WINED3D_CUBEMAP_FACE_NEGATIVE_Y
@ WINED3D_CUBEMAP_FACE_POSITIVE_Y
static unsigned int wined3d_log2i(unsigned int x)
#define WINED3DCLEAR_TARGET
@ WINED3D_MULTISAMPLE_NONE
static void wined3d_private_store_cleanup(struct wined3d_private_store *store)
#define WINED3D_BLT_DST_CKEY
#define WINED3DUSAGE_OWNDC
#define WINED3DUSAGE_LEGACY_CUBEMAP
#define WINED3DADAPTER_DEFAULT
#define WINEDDERR_OVERLAYNOTVISIBLE
#define WINED3D_RESOURCE_ACCESS_GPU
#define WINED3D_BLT_SRC_CKEY
#define WINED3D_RESOURCE_ACCESS_CPU
@ WINED3D_RTYPE_TEXTURE_2D
#define WINEDDGFS_ISFLIPDONE
#define WINED3DERR_NOTAVAILABLE
wined3d_texture_filter_type
static struct wined3d_private_data * wined3d_private_store_get_private_data(const struct wined3d_private_store *store, const GUID *tag)
#define WINED3DUSAGE_OVERLAY
#define WINEDDGBS_ISBLTDONE
static void wined3d_box_set(struct wined3d_box *box, unsigned int left, unsigned int top, unsigned int right, unsigned int bottom, unsigned int front, unsigned int back)
#define WINED3D_RESOURCE_ACCESS_MAP_R
static void wined3d_private_store_free_private_data(struct wined3d_private_store *store, struct wined3d_private_data *entry)
static void wined3d_private_store_init(struct wined3d_private_store *store)
#define WINED3D_BLT_SYNCHRONOUS
#define WINED3D_BLT_DO_NOT_WAIT
static HRESULT wined3d_private_store_set_private_data(struct wined3d_private_store *store, const GUID *guid, const void *data, DWORD data_size, DWORD flags)
#define WINED3DCLEAR_ZBUFFER
#define WINED3DUSAGE_RENDERTARGET
#define WINED3DUSAGE_DYNAMIC
#define WINED3DERR_INVALIDCALL
#define WINED3D_TEXTURE_CREATE_GET_DC_LENIENT
@ WINED3D_DEVICE_TYPE_HAL
#define WINEDDERR_NOTAOVERLAYSURFACE
#define WINED3DUSAGE_TEXTURE
#define WINED3D_RESOURCE_ACCESS_MAP_W
#define WINEDDGFS_CANFLIP
#define WINED3DUSAGE_DEPTHSTENCIL
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
#define CLASS_E_NOAGGREGATION
BOOL WINAPI GdiFlush(void)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI IsRectEmpty(_In_ LPCRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI SetRectEmpty(_Out_ LPRECT)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
_Must_inspect_result_ _In_ ULONG Flags