Francois Gouget
3de330db54
tests: Remove unneeded assert.h includes.
2011-09-27 10:59:56 +02:00
Stefan Dösinger
35f2e91fcd
ddraw/tests: Use the variable instead of the type in sizeof().
2011-09-26 17:59:37 +02:00
Stefan Dösinger
6e0d056e9a
ddraw/tests: Use sizeof instead of a magic number.
2011-09-26 17:59:34 +02:00
Henri Verbeet
4228bbc5bf
ddraw: Store the wined3d swapchain reference in the ddraw object instead of the primary surface.
2011-09-20 16:21:38 +02:00
Henri Verbeet
cc45316d02
ddraw: Setup swapchain dimensions and format using the current display mode in ddraw_create_swapchain().
2011-09-20 16:21:38 +02:00
Stefan Dösinger
f41513205c
ddraw/tests: Accept another error when setting an overlay with a NULL rect.
2011-09-19 18:32:51 +02:00
Stefan Dösinger
95b7cda6be
ddraw/tests: Mark a strange radeon X1600 Windows behavior broken.
2011-09-19 18:32:51 +02:00
Stefan Dösinger
81a9f19bac
ddraw/tests: Remove the partial cube map load tests.
...
They BSOD my Radeon X1600 Windows machine.
2011-09-19 18:32:51 +02:00
Henri Verbeet
18840ff9d9
ddraw/tests: Add some tests for Initialize().
2011-09-19 17:56:05 +02:00
Henri Verbeet
ec04f80cf6
ddraw: Implement ddraw7_Initialize().
2011-09-19 17:56:05 +02:00
Henri Verbeet
feb96511a9
ddraw: Get rid of IDirectDraw3.
2011-09-19 17:56:05 +02:00
Stefan Dösinger
eac78fd488
ddraw/tests: Add some slop to the fog tests.
2011-09-16 17:23:10 +02:00
Henri Verbeet
b9fcf71c71
ddraw: Use real flips.
2011-09-16 17:23:08 +02:00
Henri Verbeet
1aeee59bd8
ddraw: Use offscreen backbuffers.
...
In principle this allows us to use more than one backbuffer in ddraw. It's
also a requirement for the next patch.
2011-09-16 17:23:08 +02:00
Henri Verbeet
5186882098
ddraw: Store the primary surface.
2011-09-16 17:23:08 +02:00
Stefan Dösinger
e28041c9a6
ddraw/tests: Not all GPUs support dwZBufferBitDepth=24 on Windows.
2011-09-15 15:41:40 +02:00
Henri Verbeet
b741cd02c3
ddraw: Get rid of some unused macros.
2011-09-15 15:41:40 +02:00
Henri Verbeet
f60b54d952
ddraw: Get rid of the surfaces field in IDirectDrawImpl.
2011-09-15 15:41:40 +02:00
Henri Verbeet
5de020342c
ddraw: Get rid of the unused "initialized" field in IDirectDrawImpl.
2011-09-14 09:59:12 +02:00
Henri Verbeet
8173e6f539
ddraw: Just use a static variable for vblank emulation.
2011-09-14 09:58:58 +02:00
Henri Verbeet
60f6c41a67
ddraw: Just use a static variable for scanline emulation.
...
Tracking it per ddraw object doesn't add much.
2011-09-14 09:58:53 +02:00
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