Francois Gouget
8973c20f7d
Assorted spelling fixes.
2011-09-13 11:27:01 +02:00
Dan Kegel
c5d45e8b88
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-09-13 11:27:00 +02:00
Henri Verbeet
f2115004d5
ddraw: Get rid of some ERRs in PixelFormat_DD2WineD3D().
...
Most of these would just be the result of the application giving us invalid
pixel formats.
2011-09-13 09:19:40 +02:00
Henri Verbeet
be32dd86d6
ddraw: Get rid of an unused prototype.
2011-09-13 09:19:30 +02:00
Stefan Dösinger
081f39044f
ddraw: Use a Z format suported by the driver in the visual test.
2011-09-12 10:10:20 +02:00
Stefan Dösinger
0cea17037c
ddraw: Correct D3DFMT_R5G6B5 in a test.
2011-09-12 10:10:06 +02:00
Henri Verbeet
b23809868a
ddraw: Get the total amount of video memory from wined3d.
...
Instead of hoping that what's available at ddraw_init() time is the total.
2011-09-12 10:08:52 +02:00
Henri Verbeet
aa5590b061
ddraw: Remove the unused "depthstencil" field from IDirectDrawImpl.
2011-09-12 10:08:43 +02:00
Henri Verbeet
f3e1a9fa16
ddraw: Initialize the swapchain presentation parameters in ddraw_create_swapchain().
2011-09-12 10:08:38 +02:00
Francois Gouget
489527fe44
ddraw: Remove WINAPI on static functions where not needed.
2011-09-08 20:08:07 +02:00
Henri Verbeet
bbfbd66d9f
ddraw: Introduce a function for creating the swapchain.
2011-09-08 11:11:20 +02:00
Henri Verbeet
cbc009b8d2
ddraw: Also check errors returned by ddraw_create_gdi_swapchain() in CreateSurface().
2011-09-08 11:11:15 +02:00
Stefan Dösinger
73f9dd1c30
ddraw: Add tests for dwZBufferBitDepth and dwMipMapCount values.
2011-09-07 11:15:43 +02:00
Stefan Dösinger
4466d6223b
ddraw: Add tests for DDSD_PIXELFORMAT and DDSD_ZBUFFERBITDEPTH in Lock.
2011-09-07 11:15:37 +02:00
Stefan Dösinger
029c5a6cf1
ddraw: Convert DDSURFACEDESC2 in lock.
2011-09-07 11:15:32 +02:00
Stefan Dösinger
d6f17d686d
ddraw: Check the alignment, not the size.
2011-09-07 11:15:20 +02:00
Stefan Dösinger
8e79a7e664
ddraw: Add some NULL pointer tests.
2011-09-07 11:15:09 +02:00
Stefan Dösinger
252bead280
ddraw: Remove crashing tests.
2011-09-07 11:15:05 +02:00
Henri Verbeet
5824551d76
ddraw: Set the swap effect to WINED3DSWAPEFFECT_COPY in ddraw_create_gdi_swapchain().
...
The actual swapchain implementation ignores the swap effect and always does a
copy anyway, but this makes it consistent with ddraw_attach_d3d_device().
2011-09-07 11:12:43 +02:00
Henri Verbeet
582767ce45
ddraw: Only explicitly initialize non-zero fields in ddraw_create_gdi_swapchain().
...
Update ddraw_attach_d3d_device() for consistency.
2011-09-07 11:12:34 +02:00
Francois Gouget
94532dbd08
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-09-05 10:54:00 +02:00
Ričardas Barkauskas
d9ada7929a
ddraw: Don't allow SetPalette on mipmap sublevels instead of root surfaces.
2011-09-02 18:28:25 +02:00
Stefan Dösinger
4107963967
ddraw: Fix a test message.
2011-09-02 14:42:53 +02:00
Stefan Dösinger
6057041deb
ddraw: Make the overlay tests pass on Windows 7.
2011-09-02 14:42:48 +02:00
Stefan Dösinger
e0db367aef
ddraw: Set the viewport after changing the render target.
2011-09-02 14:42:43 +02:00
Stefan Dösinger
5ce2e1f39e
ddraw: Mark DepthFill blit failures between beginScene and EndScene broken.
2011-09-02 14:42:34 +02:00
Stefan Dösinger
2fc534edf2
ddraw: Simplify Z format parsing a bit, remove ERRs.
2011-09-02 14:42:28 +02:00
Francois Gouget
3a9343e520
ddraw/tests: Make enum_z_fmt_cb() static.
2011-09-02 14:42:10 +02:00
Stefan Dösinger
05b3222b39
ddraw: Add a test for DDSD_ZBUFFERBITDEPTH and DDSD_PIXELFORMAT.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
6176eb87de
ddraw: Set dwZBufferBitDepth in old z buffers.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
42b7ad4fd4
ddraw: Convert dwZBufferBitDepth into a DDPIXELFORMAT.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
c42277883a
ddraw: Introduce a function to convert a DDSURFACEDESC2 to a DDSURFACEDESC.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
76fecde8fb
ddraw: Introduce a function to convert a DDSURFACEDESC to a DDSURFACEDESC2.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
167b65ca5e
ddraw: Show that ddraw reads ddsCaps without DDSD_CAPS set.
2011-08-31 19:43:09 +02:00
Henri Verbeet
43ad90ce31
ddraw: Get rid of the ImplType fields in IDirectDrawImpl and IDirectDrawSurfaceImpl.
2011-08-31 19:42:55 +02:00
Henri Verbeet
c89a3ffe80
ddraw: Get rid of the surface implementation switching code.
2011-08-31 19:42:52 +02:00
Henri Verbeet
94ae743ea6
ddraw: Make the OpenGL renderer the default one.
2011-08-31 12:08:02 +02:00
Henri Verbeet
8f46cb6b8b
ddraw: Introduce a separate function for setting the focus window.
2011-08-29 19:42:46 +02:00
Henri Verbeet
93b5f681d9
ddraw: Remove a redundant check from ddraw7_SetCooperativeLevel().
2011-08-29 19:42:41 +02:00
Henri Verbeet
cad9cbe445
ddraw: Trace which surfaces we enumerate in ddraw7_EnumSurfaces().
2011-08-29 19:42:31 +02:00
Stefan Dösinger
899b278558
ddraw: Emulate a 24 bit depth format without stencil or padding.
2011-08-29 13:56:33 +02:00
Stefan Dösinger
caff742d41
ddraw: Trust wined3d to give us what we asked for.
2011-08-29 13:56:17 +02:00
Stefan Dösinger
30d9926a95
ddraw: Don't re-write the surface's pixelformat.
...
The pixelformat is passed in in ddraw form in the desc parameter, which is copied
into the surface's DDSURFACEDESC2 structure, so the format is already set.
2011-08-29 13:56:11 +02:00
Ričardas Barkauskas
bf7df85169
ddraw: Do not create implicit depth buffer.
2011-08-25 11:31:38 +02:00
Stefan Dösinger
138a12545d
ddraw: Correct WINED3DFMT_X8D24_UNORM.
2011-08-24 11:52:07 +02:00
Stefan Dösinger
8e7ff78354
ddraw: Correct WINED3DFMT_D24_UNORM_S8_UINT.
2011-08-24 11:52:07 +02:00
Ričardas Barkauskas
68f3d21f02
ddraw: Print IDirectDrawGammaControl interface reference count for easier debugging.
2011-08-22 17:16:04 +02:00
Ričardas Barkauskas
5c8ad26757
ddraw: Do not AddRef IDirectDraw7 iface in CreateSurface helper.
2011-08-22 17:15:54 +02:00
Ričardas Barkauskas
abf8728e1f
ddraw: Don't allow setting palette on non root surfaces.
2011-08-22 17:15:48 +02:00
Ričardas Barkauskas
1a609ecab8
ddraw/tests: Properly release no longer used interfaces.
2011-08-22 17:15:41 +02:00