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
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
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
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
167b65ca5e
ddraw: Show that ddraw reads ddsCaps without DDSD_CAPS set.
2011-08-31 19:43:09 +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
Ričardas Barkauskas
bf7df85169
ddraw: Do not create implicit depth buffer.
2011-08-25 11:31:38 +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
Frédéric Delanoy
760faf01a9
tests: Assorted spelling fixes.
2011-08-04 18:27:37 +02:00
Matteo Bruni
0c34811612
ddraw/tests: Add a couple of fog tests.
2011-07-28 11:29:02 +02:00
Matteo Bruni
b6af8a7ef9
ddraw/tests: Fix some messages.
2011-07-27 11:53:02 +02:00
Matteo Bruni
2308f4cfda
ddraw/tests: Rename a variable.
2011-07-27 11:52:54 +02:00
Henri Verbeet
e55121773a
ddraw/tests: Add tests to show that resizing the window on mode changes is a property of DDSCL_EXCLUSIVE.
2011-07-22 12:57:19 +02:00
Henri Verbeet
84413298de
ddraw: Resize the window after setting the new display mode.
2011-07-22 12:57:18 +02:00
Henri Verbeet
04d541c26d
ddraw: Just use SetWindowPos() in ddraw_set_display_mode().
...
Instead of going through wined3d_device_restore_fullscreen_window() /
wined3d_device_setup_fullscreen_window(). The main point of those functions is
changing the window styles, but we don't actually need that here. More
importantly, we filter the messages generated by those functions in wined3d,
while tests show that messages generated by SetDisplayMode() /
RestoreDisplayMode() are visible to the application. Applications depend on
WM_SIZE in particular.
2011-07-19 14:05:56 +02:00
Ričardas Barkauskas
e5d69ba923
ddraw: Separate IDirectDrawGammaControl reference count.
2011-06-28 11:57:51 -05:00
Ričardas Barkauskas
90112e97ea
ddraw: Move IDirect3DTexture and IDirect3DTexture2 to IDirectDrawSurface reference counts.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
5f6d7021aa
ddraw: Separate IDirectDrawSurface and IDirectDrawSurface7 reference counts.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
9190d349d2
ddraw: Separate IDirectDrawSurface4 reference count.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
3b50ad82ad
ddraw: Fix SetRenderTarget behaviour on failure.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
f0634f7a4b
ddraw: Separate IDirectDrawSurface3 reference count.
2011-06-21 17:11:53 +02:00
Ričardas Barkauskas
167ffc7b4b
ddraw: Separate IDirectDrawSurface2 reference count.
2011-06-21 17:10:55 +02:00
Ričardas Barkauskas
a9f72a3067
ddraw: Test ddraw surface reference counts a bit more.
2011-06-21 17:10:26 +02:00
Henri Verbeet
708d94212b
wined3d: Don't clamp vertex depth values.
...
Since we report D3DPMISCCAPS_CLIPTLVERTS.
2011-06-06 16:18:33 +02:00
Andrew Nguyen
a90b698e0c
ddraw: Handle a callback cancellation attempt in d3d7_EnumDevices.
2011-06-01 16:09:58 +02:00
Andrew Nguyen
f2f529ae38
ddraw: Extend the lifetime of the EnumDevices strings beyond function scope.
2011-06-01 16:09:53 +02:00
Andrew Nguyen
cf6d56a43a
ddraw: Add a NULL callback pointer check in the EnumDevices implementations.
2011-05-31 18:32:59 +02:00
Andrew Nguyen
7cd97b2ed4
ddraw/tests: Remove a superfluous skip check.
2011-05-31 18:32:59 +02:00
Henri Verbeet
1db6a7e450
ddraw/tests: Fix the depth clamping test.
2011-05-24 11:55:05 +02:00
Henri Verbeet
f147c1e928
ddraw: Don't touch the window during mode setting if we're not in exclusive mode.
2011-05-24 11:53:47 +02:00
Henri Verbeet
43aac32fd5
ddraw/tests: Add a test for mode settings calls with different coop levels.
2011-05-24 11:53:44 +02:00
Francois Gouget
a006296dca
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-05-16 16:35:28 +02:00
Ričardas Barkauskas
a7bd11afb0
ddraw: Fix filtering of enumerated display modes.
2011-05-12 18:22:25 +02:00
Henri Verbeet
5e4145d0ff
ddraw: Skip redundant mode setting calls.
2011-05-11 14:56:48 +02:00
Henri Verbeet
87b45c3545
ddraw/tests: Add a small test for redundant mode setting calls.
2011-05-11 14:56:48 +02:00
Francois Gouget
d719e831ab
ddraw/tests: Add a '\n' to an ok() call.
2011-05-09 12:09:13 +02:00
Henri Verbeet
65272a4f81
ddraw/tests: Add a test for SetCooperativeLevel() window styles.
2011-05-03 14:38:06 +02:00
Henri Verbeet
0293e19928
ddraw/tests: Make sure the window is properly released by ddraw in test_wndproc().
2011-05-03 14:38:06 +02:00
Austin English
46f0538ae0
ddraw: Fix unused variable warnings (LLVM/Clang).
2011-02-07 10:13:52 -06:00
Greg Geldorp
1e7c80ba9a
ddraw/tests: Remove some outdated tests.
2011-01-14 18:26:20 +01:00
Henri Verbeet
8c2416941e
ddraw/tests: Fix a typo.
2010-11-30 10:56:57 +01:00
Henri Verbeet
63316d0967
ddraw: Return DDERR_INVALIDPARAMS for 0 width / height surface creation.
2010-11-18 12:37:49 +01:00
Henri Verbeet
d3e2e84feb
ddraw/tests: Fix some failure messages.
2010-11-17 14:01:15 +01:00
Henri Verbeet
7a354177b3
wined3d: Don't unregister a window unless the window proc is what we expect it to be.
...
In particular, if we'd unregister a window when the application replaced our
window proc, but still forwards to us, we'd create a loop when we register
the same window again later.
2010-11-10 12:19:24 +01:00
Henri Verbeet
6fcb33f59f
ddraw: Window proc replacement depends on DDSCL_EXCLUSIVE, not DDSCL_FULLSCREEN.
2010-11-10 12:19:04 +01:00
Henri Verbeet
7e3985e1fe
ddraw: Setup the device window in SetCooperativeLevel().
2010-11-08 13:30:54 +01:00
Henri Verbeet
feaf81f60d
wined3d: Use SetWindowPos() to make the focus window active.
2010-11-05 17:15:37 +01:00
David Adam
7661e8986c
ddraw: Exclusive mode is the corner case for SetCooperative, not the normal mode.
2010-11-04 12:23:07 +01:00
Henri Verbeet
4c4a414596
ddraw/tests: Check for multiple expected messages in test_wndproc().
2010-11-04 12:12:33 +01:00
Francois Gouget
6fb3a0a032
ddraw/tests: Remove a space before a '\n'.
2010-11-02 13:16:09 +01:00
David Adam
e5e150a4d6
ddraw: Add tests for SetCooperativeLevel with a NULL window.
2010-11-02 12:03:03 +01:00
Francois Gouget
aa93d7b80d
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2010-11-02 12:03:03 +01:00
David Adam
94f74a7caf
ddraw: Add tests for the foreground window set by SetCooperativeLevel.
2010-11-01 12:38:44 +01:00
Ričardas Barkauskas
78e4a096a3
ddraw: Surfaces with DDSCAPS_3DDEVICE and DDSCAPS_ZBUFFER can't be render targets.
2010-10-25 15:31:12 +02:00
Ričardas Barkauskas
ff659522f6
ddraw: Fix DDSCAPS_3DDEVICE surfaces always setting DDSCAPS_VISIBLE.
2010-10-25 15:31:07 +02:00
Ričardas Barkauskas
7402761e21
ddraw/tests: Test some more caps combinations.
2010-10-25 15:31:02 +02:00
Ričardas Barkauskas
c6bc9e01e3
ddraw/tests: Test if surface with DDSCAPS_ZBUFFER can be render target.
2010-10-25 15:30:51 +02:00
David Adam
0a90271d69
ddraw: SETFOCUSWINDOW lives independently of other flags.
2010-10-22 12:08:07 +02:00
David Adam
a8740a4667
ddraw/test: Add more combination tests for SetCooperativeLevels.
2010-10-12 11:44:13 +02:00
Austin English
b2a8b61dd5
ddraw/tests: Fix a few compiler warnings on clang.
2010-10-01 17:48:11 +02:00
Alexandre Julliard
730f01801f
tests: Make some variables static.
2010-10-01 13:41:42 +02:00
Alexandre Julliard
81b8ee863e
makefiles: Add a standard header for all makefiles to replace the common variable initializations.
2010-09-19 12:36:48 +02:00
Oldřich Jedlička
a6c3d0d6ac
ddraw: Add checking of SURFACEDESC type/nullness into CreateSurface methods.
2010-09-18 14:40:01 +02:00
Oldřich Jedlička
bec3b7692d
ddraw: Allow creating back buffer for DirectX 1 interfaces.
2010-09-16 13:38:03 -05:00
Oldřich Jedlička
7085a3f85b
ddraw/tests: New attachment tests for 3D back buffers.
2010-09-14 13:34:21 -05:00
Henri Verbeet
b1a385db11
ddraw: Remove some stray tabs.
2010-09-08 13:32:00 +02:00
Oldřich Jedlička
51332b7a03
ddraw/tests: New tests for CreateSurface for 3D DDSCAPS_BACKBUFFER.
2010-09-03 16:02:31 +02:00
Henri Verbeet
83ff5b5041
ddraw: Handle D3DRENDERSTATE_TEXTUREHANDLE and D3DRENDERSTATE_TEXTUREMAPBLEND in d3d7.
2010-09-03 11:05:35 +02:00
Oldřich Jedlička
964500a61a
ddraw/tests: New visual back buffer flipping tests.
2010-08-26 17:21:09 +02:00
Oldřich Jedlička
e474eb81e0
ddraw/tests: Add test for bad size of surface caps in CreateSurface.
2010-08-19 12:01:57 +02:00
Oldřich Jedlička
5c05b14167
ddraw/tests: New attachment/flipping tests for back buffers.
2010-08-04 12:27:11 +02:00
Oldřich Jedlička
109cb9fee4
ddraw/tests: New CreateSurface for DDSCAPS_BACKBUFFER tests.
2010-08-04 12:27:04 +02:00
Johan Gill
1fb67788b1
ddraw: Added a todo_wine test for SetCooperativeLevel.
2010-07-28 16:28:22 +02:00
Alexandre Julliard
b86d515ed6
dlls: Remove explicit imports of kernel32 and ntdll.
2010-07-21 17:38:36 +02:00
Andrew Nguyen
8b1c1edb6b
ddraw/tests: Test IDirect3D::FindDevice HAL enumeration.
2010-07-19 14:48:54 +02:00
Andrew Nguyen
14744c44b1
ddraw: Don't permit the enumeration of the Direct3D reference device in IDirect3D1::FindDevice.
2010-07-19 14:41:33 +02:00
Henri Verbeet
cf39adbaa2
ddraw: Avoid an integer overflow in IDirectDrawSurfaceImpl_BltFast().
...
Bug spotted by Iain Arnell, test by Iain Arnell.
2010-06-24 15:11:43 +02:00
Andrew Nguyen
bdc29f83bc
ddraw/tests: Add an observation regarding device color model criteria for IDirect3D3::FindDevice.
2010-06-22 11:47:39 +02:00
Andrew Nguyen
eb9227015a
ddraw: Allow the ddraw RGB device to be enumerated in IDirect3D3::FindDevice.
...
Partially based on a patch by David Adam.
2010-06-22 11:47:24 +02:00
Andrew Nguyen
10a076ad8d
ddraw: Validate structure pointers and sizes in IDirect3D3::FindDevice.
2010-06-22 11:24:59 +02:00
Johan Gill
7c90c1a0b5
ddraw: Do not restore the display mode from inside SetCooperativeLevel.
2010-04-19 16:06:01 +02:00
Johan Gill
15b959fba7
ddraw/tests: Added todo_wine test to verify resizing of fullscreen windows.
2010-04-07 18:13:05 +02:00
Roderick Colenbrander
2930f84961
ddraw: Add some DirectDraw Blt tests.
2010-03-30 13:55:05 +02:00
Henri Verbeet
914c8cb8ea
ddraw: Acquire/release the focus window from the correct location.
2010-03-18 10:24:15 +01:00
Stefan Dösinger
b5ddd6f0fc
ddraw: Use a D24X8 depth buffer.
2010-03-17 16:08:48 +01:00
Henri Verbeet
89fef0e669
ddraw: Fix IDirectDraw4Impl_GetSurfaceFromDC().
...
Perhaps interesting to note is that this returns an IDirectDrawSurface instead
of an IDirectDrawSurface4.
2010-03-17 10:06:29 +01:00
Henri Verbeet
4e48ae2629
ddraw: Implement IDirectDrawImpl_GetSurfaceFromDC().
...
This is a pretty naive implementation, should that become a performance
problem it's easy enough to speed up with a search tree of some kind.
2010-03-17 10:06:25 +01:00
Alexandre Julliard
bef5645eb1
makefiles: Remove the no longer needed explicit separators for dependencies.
2010-03-16 13:28:19 +01:00
Christian Costa
2e48bdd144
ddraw/tests: Fix typos.
2010-03-01 12:05:53 +01:00
Alexandre Julliard
6164ce2d82
makefiles: Use the standard C_SRCS variable as the list of test files.
...
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Paul Vriens
22fc1fe366
ddraw/tests: Fix a test failure on VMware and VirtualBox on W2K and below.
2010-02-15 16:09:31 +01:00
Christian Costa
e0213af9ab
ddraw: Enable GetViewport to retreive data set by SetViewport2 and vice-versa + tests.
2010-02-15 12:51:23 +01:00
Stefan Dösinger
bb035638d0
d3d: Make sure vertexbuffer lock doesn't return a NULL pointer.
2010-02-09 11:33:53 +01:00
Alexandre Julliard
6d1ba98f5b
ddraw/tests: Fix a test that fails on Win2k.
2010-02-05 11:54:51 +01:00
Stefan Dösinger
f0266ee519
ddraw: Test invalid buffer lock parameters.
2010-01-29 14:59:02 +01:00
Henri Verbeet
69861cf873
wined3d: Get rid of the depth range hack.
2010-01-27 11:16:07 +01:00
Henri Verbeet
ec03d3e4f1
ddraw: Add depth clamp tests.
2010-01-27 11:15:58 +01:00
Luke Benstead
34e82e3dbd
ddraw: Fix an incorrect refcount test.
2009-12-18 11:39:48 +01:00
Roderick Colenbrander
6d8c4572ef
wined3d: Fix a bug in BtlFast which was uncovered by the 32-bit dibsection support.
2009-12-17 12:53:19 +01:00
Henri Verbeet
e79a6b20d2
ddraw/tests: Add tests for ddraw window proc handling.
2009-12-17 12:43:05 +01:00
Nicolas Le Cam
bf64bbd1fb
ddraw/tests: Get rid of a carriage return in a trace.
2009-12-14 12:04:06 +01:00
Paul Vriens
0f0d92bf13
ddraw/tests: Fix some test failures on Vista+.
2009-12-10 15:01:06 +01:00
Austin Lund
38d44e0a52
ddraw/tests: Fix test failure for D3DFMT_A2R10G10B10 pixel format in GetDC tests.
2009-11-17 15:14:56 +01:00
Paul Vriens
8a1f0eed8e
ddraw/tests: Fix a test failure on systems with no DirectDraw7.
2009-11-03 21:26:46 +01:00
Markus Stockhausen
f222a1654e
ddraw: Avoid memory overwrite in GetDeviceIdentifier().
2009-10-30 16:32:53 +01:00
Paul Vriens
e1bf800ba5
ddraw/tests: Fix a test failure on Win9x/WinMe.
2009-10-21 16:05:57 +02:00
Francois Gouget
323f163af4
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2009-10-19 14:45:21 +02:00
Henri Verbeet
02772641b2
ddraw/tests: Remove some leftover debug code.
2009-10-19 11:45:36 +02:00
Henri Verbeet
c45609f15c
ddraw/tests: Check some more return values (LLVM/Clang).
2009-10-16 13:37:00 +02:00
Christian Costa
e95ffacde0
ddraw: Make SetColorKey handle case where dwColorSpaceHighValue < dwColorSpaceLowValue + tests.
2009-10-15 12:06:22 +02:00
Paul Vriens
72fab20ffe
ddraw/tests: Don't crash on older ddraw.
2009-10-12 12:14:03 +02:00
Andrew Nguyen
7211f7ce18
ddraw: Implement and test DirectDrawEnumerateExW.
2009-10-09 11:50:28 +02:00
Andrew Nguyen
3496fe5f43
ddraw: More fully implement and test DirectDrawEnumerateExA.
2009-10-09 11:50:28 +02:00
Andrew Nguyen
bab8f7e557
ddraw: Implement and test DirectDrawEnumerateW.
2009-10-09 11:50:14 +02:00
Andrew Nguyen
4c61c2ff63
ddraw: Simplify and test DirectDrawEnumerateA.
2009-10-09 11:40:16 +02:00
Andrew Nguyen
611fae610c
ddraw/tests: Remove a superfluous return statement.
2009-10-09 11:40:07 +02:00
Paul Vriens
ddd255cb08
ddraw/tests: Fix some test failures on WinME/VMware.
2009-10-08 12:17:30 +02:00
Stefan Dösinger
9e068a33b3
wined3d: SetRenderTarget doesn't change the viewport in d3d7.
2009-10-02 15:06:56 +02:00
Markus Stockhausen
dbb29993db
ddraw: Set dwBackBufferCount=0 in CreateSurface for backbuffer.
2009-09-29 16:06:47 +02:00
Stefan Dösinger
e1469961d4
wined3d: Test and fix ddraw and d3d9 GetDC differences.
...
The MSDN is not totally correct: A8R8G8B8 and A1R5G5B5 also allow GetDC. The
main differences that have to be filtered out in d3d9.dll are GetDC on
A8B8G8R8, X8B8G8R8 and P8.
2009-09-08 13:04:52 +02:00
Henri Verbeet
ee60e5fd71
ddraw: Remove trailing spaces.
2009-09-01 14:06:03 +02:00
Francois Gouget
e168876d8f
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2009-08-31 12:41:21 +02:00
Alexandre Julliard
60d389670a
ddraw/tests: Properly release surfaces even if we can't get the texture object.
2009-07-14 11:29:47 +02:00
Alexandre Julliard
340f5734bf
ddraw/tests: Fix a failing test on 64-bit.
2009-07-14 11:29:47 +02:00
Alexandre Julliard
5622f74486
ddraw/tests: Fix a few tests that fail on Win64.
2009-07-10 20:52:41 +02:00
Luke Benstead
73abda63d7
ddraw: Add tests for DirectDrawSurface reference counting.
2009-05-20 11:09:07 +02:00
Francois Gouget
82b7fc6855
ddraw/tests: Replace malloc() with HeapAlloc().
2009-05-13 12:45:36 +02:00
Nicolas Le Cam
ad66aa77a4
ddraw/tests: Fix a test failure on VirtualBox.
2009-05-04 12:51:15 +02:00
Christian Costa
06d2b30903
ddraw/tests: Add tests for refcount handling of light with viewport.
2009-04-21 16:30:36 +02:00
Andrew Nguyen
e1a1ae5e1b
ddraw/tests: Skip some cooperative level tests on NT4/Win95.
...
The DirectX SDK reports that cooperative level flags
DDSCL_SETDEVICEWINDOW and DDSCL_SETFOCUSWINDOW are only
available on Windows 98 and higher.
2009-03-23 18:21:06 +01:00
Michael Stefaniuc
58f2a01e23
ddraw/tests: Use ULONG instead of unsigned long.
2009-03-23 12:41:21 +01:00
Paul Vriens
5974ad1200
ddraw/tests: Fix a test failure on VMware and some native boxes.
2009-03-13 14:55:47 +01:00
Paul Vriens
27f52727e4
ddraw/tests: Fix two test failures on W2K/VMware.
2009-03-13 14:53:02 +01:00
Paul Vriens
d5e9c3cf92
ddraw/tests: Fix some test failures on W2K/VMware.
2009-03-12 13:09:53 +01:00
Paul Vriens
ae1802d01b
ddraw/tests: Fix some test failures on W2K/VMware.
2009-03-11 16:03:32 +01:00
Alexandre Julliard
e047edb080
ddraw/tests: Allow IDirectDrawSurface_AddAttachedSurface failure on Windows.
2009-03-05 12:47:02 +01:00
David Adam
22bfd1396c
ddraw: Implement ComputeSphereVisibility.
2009-02-26 15:13:25 +01:00
Francois Gouget
77a3cffb1b
ddraw/tests: Use win_skip() to skip over unimplemented functionality.
2009-02-24 16:57:26 +01:00
Paul Vriens
4542ab35b4
ddraw/tests: Use skip() instead of trace().
2009-02-19 12:54:25 +01:00
Paul Vriens
b63728a850
ddraw/tests: Don't crash on W2K.
2009-02-19 12:54:21 +01:00
Vincent Pelletier
f879176b99
ddraw: Use ddraw_from_d3d7 to make a (IDirectDrawImpl *) from a (IDirect3D7 *).
2009-02-10 12:31:50 +01:00
Alasdair Sinclair
8a46be6cee
ddraw/tests: Fix missing void in empty parameter list.
2009-01-28 12:10:49 +01:00
David Adam
62b8b9a8fd
ddraw/tests: Add a few tests for ComputeShereVisibility.
2009-01-26 14:30:17 +01:00
Stefan Dösinger
ae4e824423
ddraw[ex]: Show a caps handling difference.
2009-01-09 16:18:12 +01:00
Michael Stefaniuc
91bb8dc043
ddraw/tests: Remove superfluous casts.
2009-01-04 13:34:13 +01:00
Michael Stefaniuc
566a133a82
ddraw/tests: Simplify a pointer increment.
2009-01-04 13:34:05 +01:00
Stefan Dösinger
6ef2b65531
ddraw: Reject IDirectDraw3 QI in ddraw.dll.
2009-01-03 15:14:51 +01:00
Stefan Dösinger
616ea53226
ddraw: Add a test for IDirectDrawSurface::GetDC.
2009-01-03 15:14:38 +01:00
Rico Schüller
26b9f8ef26
ddraw/tests: Fix alpha_test and offscreen_test on geforce 8800 on XP.
2008-12-23 20:12:28 +01:00
Rico Schüller
a14fe082bf
ddraw/tests: Fis some ok() lines in alpha_test().
2008-12-23 20:11:40 +01:00
Francois Gouget
ab9f028958
ddraw/tests: Make some functions static.
2008-12-15 12:25:41 +01:00
Paul Vriens
76b24fd970
ddraw/tests: Fix a test failure on a Win98 VMware box.
2008-12-12 11:38:26 +01:00
Huw Davies
ebb31dbbb7
ddraw/tests: Skip tests if we can't create a primary surface.
2008-12-05 13:52:38 +01:00
Michael Stefaniuc
176c8eb333
ddraw: Remove two superfluous casts.
2008-12-05 12:36:34 +01:00
Paul Vriens
902bee8f09
ddraw/tests: Skip tests when DirectDraw4 is not supported.
2008-11-12 12:55:09 +01:00
Paul Vriens
10e5d3aa12
ddraw/tests: Fix a typo.
2008-11-12 12:55:03 +01:00
Paul Vriens
fbdb78c888
ddraw/tests: Fix a test on W2K3.
2008-11-05 10:54:40 +01:00
Alexandre Julliard
e1ced22db1
ddraw: Convert source files to utf-8.
2008-10-18 19:19:45 +02:00
Michael Stefaniuc
ff5a860c0c
ddraw/tests: Use FAILED instead of !SUCCEEDED.
2008-10-08 13:42:11 +02:00
Paul Vriens
a12509532c
ddraw/tests: Fix a test on a Win98 box.
2008-09-22 12:16:53 +02:00
Francois Gouget
7dd099416e
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-09-08 12:47:21 +02:00
Paul Vriens
55faa6e911
ddraw/tests: Let tests run again on win9x.
2008-09-03 13:14:51 +02:00
Stefan Dösinger
09d0a35872
ddraw: Add some overlay tests.
2008-09-02 15:05:59 +02:00
David Adam
bb67a925d6
ddraw: Only ddraw checks wether one can give a null pointer to SetMaterial.
2008-08-22 11:32:09 +02:00
Alexander Dorofeyev
e718eae9e2
ddraw/tests: Skip cubemap tests when cubemap isn't supported.
2008-08-21 13:35:12 +02:00
Alexander Dorofeyev
2be93ce6b0
ddraw/tests: Add tests for surface caps memory flags.
2008-07-17 11:21:48 +02:00
Alexandre Julliard
79c64acc7b
tests: Don't depend on the static uuid libraries in the tests.
...
This avoids trouble with the broken MingW libraries when
cross-compiling the tests.
2008-07-08 17:51:45 +02:00
James Hawkins
11e31e580c
ddraw: Fix a failing test for broken drivers.
2008-07-02 12:05:08 +02:00
James Hawkins
8830dbcca8
ddraw: Fix a failing test for broken drivers.
2008-07-02 12:04:56 +02:00
James Hawkins
5dcec4de49
ddraw: Reset the viewport data before each test.
2008-06-18 13:51:46 +02:00
Dmitry Timoshkov
2cf47c00f2
ddraw: Avoid a not needed address-of operator.
2008-06-06 10:29:09 +02:00
James Hawkins
7352978713
ddraw: Delete the temporarily attached surface.
2008-06-02 12:35:14 +02:00
Jens Albretsen
a2b645128f
ddraw: Test for IDirect3DTexture_Load of Texture into itself.
2008-05-28 19:31:35 +02:00
Paul Vriens
f076d79c6c
ddraw/tests: Don't crash on win9x.
2008-05-28 11:32:24 +02:00
Francois Gouget
8019c55cc6
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-05-21 11:36:39 +02:00
Alexander Dorofeyev
ebf1f4e6bb
ddraw/tests: Add KEYSRCOVERRIDE test in p8_primary_test.
2008-05-09 11:19:43 +02:00
Alexander Dorofeyev
c4d75213ab
ddraw/tests: Add tests for IDirect3DDevice7_Load.
2008-05-06 11:26:24 +02:00
Alexander Dorofeyev
d5db7615a2
ddraw/tests: Add test for deprecated render states in d3d7.
2008-05-05 19:54:48 +02:00
Alexandre Julliard
dad21bbcbf
makefiles: List the static libraries as normal imports instead of extra libs.
2008-04-30 14:23:55 +02:00
James Hawkins
404afbaa3c
ddraw: Remove a test that fails in VMs.
2008-04-28 13:27:51 +02:00
James Hawkins
2f97a71e36
ddraw: Fix tests that fail with the reference rasterizer.
2008-04-25 14:53:17 +02:00
Francois Gouget
4ba16af16b
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-04-14 12:40:22 +02:00
Alexander Dorofeyev
df422cf0fb
ddraw/tests: Add colorkeyed blit to p8_primary_test.
2008-04-11 13:05:12 +02:00
Alexander Dorofeyev
d8ae8a8780
ddraw/tests: Add viewport clearing tests.
2008-04-11 13:05:03 +02:00
Francois Gouget
0d0c4a355b
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-04-07 13:36:18 +02:00
Austin English
f4c4488df8
Spelling fixes.
2008-04-07 13:36:17 +02:00
Alexander Dorofeyev
18b9c2bb83
ddraw/tests: Extend p8_primary_test.
...
Additional tests for blitting and locking.
2008-04-04 11:43:45 +02:00
Austin English
825baa23a2
ddraw: Spelling fixes.
2008-04-03 11:39:45 +02:00
Alexander Dorofeyev
003f679cbe
ddraw/tests: Additional colorfill test in p8_primary_test.
2008-04-03 11:31:32 +02:00
Alexander Dorofeyev
2caa797e76
ddraw: Set surface to NULL on failure in GetAttachedSurface.
2008-04-03 11:30:30 +02:00
Stefan Dösinger
2e26c176ec
ddraw: Pass the NULL rectangle to IDirectDrawSurface::Unlock.
2008-04-02 20:29:17 +02:00
Stefan Dösinger
c1503a2579
ddraw: Remove some leftover test debug output.
2008-04-02 20:29:09 +02:00
Stefan Dösinger
ab7630fbe3
ddraw: Add a D3D7 cube map test.
...
The DirectDraw cube mapping interface has a few pitfalls. So far we have
a test testing the surface enumeration, this adds a rendering test. So
far everything used in the test works.
2008-04-02 20:29:01 +02:00
Stefan Dösinger
4066c2e2fd
ddraw: Do not fail if D3D is not available.
2008-04-01 20:31:51 +02:00
Marcus Meissner
0ab270e41a
ddraw/tests: Initialize ddprimpal.
2008-03-28 14:49:17 +01:00
Francois Gouget
eab196b35a
ddraw: Remove trailing spaces in ok() calls.
2008-03-27 11:05:40 +01:00
Kolbjørn Fredheim
a40185f12f
ddraw: Don't clear the return value anymore, we fill the fields anyway, also a test for the behaviour.
2008-03-25 12:50:33 +01:00
Alexander Dorofeyev
7a012df64d
ddraw/tests: Add test for ddraw 8-bit mode.
...
Adds rudimentary test for 8 bit mode ddraw (palettized primary surface). Tests
things like GetDC and its palette handling and SetPalette affected by patches
that follow.
2008-03-25 11:53:06 +01:00
Alexander Dorofeyev
eddbdbef47
ddraw/tests: Test executebuffer triangle instruction with zero count.
2008-03-24 20:40:18 +01:00
Alexander Dorofeyev
bacd2340b4
ddraw/tests: Test SetPalette on non-palettized surfaces.
2008-03-24 20:40:05 +01:00
Francois Gouget
9381f22653
ddraw/tests: Don't use 0xaa to avoid any confusion when running with +heap.
2008-03-05 12:18:36 +01:00
Günther Brammer
df5116cc7d
ddraw: Return a nullpointer as lpSurface in Lock() if the rect is invalid.
2008-02-25 19:50:30 +01:00
Alexander Dorofeyev
29d87c6cbf
ddraw/tests: Add a test of D3DTBLEND_MODULATE with P8 texture.
2008-02-21 12:53:00 +01:00
Detlef Riekenberg
1eb52667ac
ddraw/tests: Avoid endless loop, when T&L is not supported.
2008-02-20 12:06:28 +01:00
Alexander Dorofeyev
74c380cb7b
ddraw/tests: Add test for palette handling in IDirect3DTexture_Load.
2008-02-19 13:39:24 +01:00
Alexander Dorofeyev
cfa40a22c9
ddraw/tests: Split d3d1 initialization and destruction into separate functions.
...
Slight rewrite to make creating additional D3D1 tests easier.
2008-02-19 13:39:23 +01:00
Alexander Dorofeyev
ddd0ec1670
ddraw/tests: Add test for branch instruction with non-zero offset.
2008-02-19 12:06:50 +01:00
Roderick Colenbrander
1079f37407
wined3d: When DDCAPS_ALLOW256 is set, palette entry 0 and 255 are filled with black and white.
2008-02-19 12:06:25 +01:00
Francois Gouget
4c8e218252
Assorted spelling fixes.
2008-02-15 12:09:24 +01:00
Reece H. Dunn
8354995482
ddraw: Spelling fixes in the d3d test output.
2008-02-06 13:49:45 +01:00
Stefan Dösinger
8ad3a1f49e
ddraw: Some drivers return a refresh rate of 0.
2008-02-06 12:43:53 +01:00
Francois Gouget
20b41af9f1
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-02-05 12:19:37 +01:00
Francois Gouget
d0794c4aeb
Assorted spelling fixes.
2008-01-23 21:16:22 +01:00
Alexander Dorofeyev
320e253805
ddraw/tests: Add test for D3DTBLEND_MODULATE.
2008-01-22 11:19:34 +01:00
Francois Gouget
7478d9c44d
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2008-01-16 12:46:09 +01:00
Alexander Dorofeyev
d14ef91c92
ddraw/tests: Add test for rendering vertices with zero rhw.
2008-01-08 12:53:31 +01:00
Peter Dons Tychsen
6e8b7c4cef
ddraw: Add missing pitch in callback from EnumDisplayModes().
2008-01-04 13:55:12 +01:00
Francois Gouget
05170942de
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2007-12-10 12:06:09 +01:00
Stefan Dösinger
f700cbe74b
wined3d: Add an alpha blending test.
2007-12-07 16:26:43 +01:00
Stefan Dösinger
3cc253c557
wined3d: Enabling too many lights is silently ignored.
...
I'm resending this patch because my reply to Henri's concern came too late.
Henri noted that I am enabling lights that do not exist. Existing tests show
that if no light is assigned to the index, LightEnable creates a light with a
set of default parameters, so the tests should be fine.
From 9ee4c61805b50886f79e87d744b52f27b7b00b4e Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan@codeweavers.com>
Date: Thu, 29 Nov 2007 13:22:47 +0100
Subject: [PATCH] WineD3D: Enabling too many lights is silently ignored
This patch adds tests for all d3d versions that show that Windows
pretends that enabling more lights than supported succeeds. D3D_OK is
returned, and the light is reported as enabled.
What is not tested in this patch is the rendering output of this
situation, thus the FIXME is still written.
2007-12-03 13:44:07 +01:00
Stefan Dösinger
714991bf3f
ddraw: Fix a test for Vista.
2007-11-07 12:08:07 +01:00
Stefan Dösinger
f9dba29477
ddraw: Be less picky about float precision.
2007-11-07 12:08:00 +01:00
Stefan Dösinger
0d016254a0
wined3d: Don't test D3DDEVICE surfaces in dsurface tests.
2007-11-05 13:24:36 +01:00
Stefan Dösinger
7a445747ea
ddraw: Do not fail on surface creation errors, skip instead.
2007-10-10 11:59:26 +02:00
David Hedberg
019cc506a8
ddraw: Enumerate additional devices in IDirect3D7_EnumDevices.
2007-09-10 16:47:30 +02:00
David Hedberg
c53487b599
ddraw: Fix and test case for situation where DDSD_MIPMAPCOUNT is set and dwMipMapCount is 0.
2007-09-10 15:29:46 +02:00
Stefan Dösinger
d0fdb1ea7e
d3d: Add a test for double surface locking.
2007-08-31 11:25:19 +02:00
Stefan Dösinger
2d15cb8b27
d3d: Add a simple offscreen rendering test.
2007-08-08 15:32:00 +02:00
Stefan Dösinger
df75a7e007
ddraw: SetDisplayMode may fail.
2007-08-03 12:30:21 +02:00
Stefan Dösinger
1f4d71c0f6
ddraw: Some drivers return DDERR_INVALIDPARAMS if DXTn surfaces aren't supported.
2007-08-03 12:30:03 +02:00
Francois Gouget
5266e57975
Assorted spelling fixes.
2007-07-31 21:37:50 +02:00
Stefan Dösinger
17f1c29457
ddraw: Table fog may be unsupported.
2007-07-30 23:37:58 +02:00
Francois Gouget
382329c103
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2007-07-09 11:45:53 +02:00
Paul Vriens
a470ea6205
ddraw/tests: Use skip instead of trace.
2007-07-06 18:15:32 +02:00
Paul Vriens
c92026739e
ddraw/tests: Use skip instead of trace.
2007-07-06 18:15:26 +02:00
Francois Gouget
a3317a5c01
Assorted spelling fixes.
2007-07-05 19:56:34 +02:00
Francois Gouget
090fd6d9d2
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2007-07-05 19:54:58 +02:00
Stefan Dösinger
e4bf7ab578
ddraw: Implement IDirect3DViewport3::TransformVertices.
2007-07-05 19:52:27 +02:00
Stefan Dösinger
5fa4de27bc
ddraw: D3DOP_BRANCHFORWARD includes the current instruction size.
...
Native D3DRM puts a branchforward with offset 0 at the beginning of each
execute buffer. With the old code this used to get stuck in an endless
loop. This patch adds a test that shows that such a branchforward
terminates properly.
2007-07-05 19:52:01 +02:00