Commit Graph

1662 Commits

Author SHA1 Message Date
Henri Verbeet 9d317e632f ddraw: Properly retrieve an interface pointer in ddraw_surface7_GetPalette(). 2012-04-09 12:02:55 +02:00
Henri Verbeet 02b9988f48 ddraw: Simplify updating palette entries in d3d_texture2_Load(). 2012-04-09 12:02:51 +02:00
Piotr Caban 5c85f96f33 ddraw: Improve GetScanLine stub so it's usable for timing related tasks. 2012-04-06 20:16:23 +02:00
Henri Verbeet 9804ebcd9e ddraw/tests: Add some QueryInterface() tests for devices. 2012-04-06 20:11:23 +02:00
Henri Verbeet cf30899f1a ddraw: Version 1 devices are aggregated by the surface that created them. 2012-04-06 20:11:17 +02:00
Henri Verbeet e13de0adf8 ddraw: Fix querying device interfaces in IDirect3DDeviceImpl_7_QueryInterface().
Version 7 devices can only return the version 7 interface. The other versions
can only return earlier interfaces.
2012-04-06 20:11:13 +02:00
Henri Verbeet 1a98c339ca ddraw: Remove some interfaces from IDirect3DDeviceImpl_7_QueryInterface(). 2012-04-04 17:22:30 +02:00
Henri Verbeet cd8508a915 ddraw: Replace an ERR in IDirect3DDeviceImpl_7_QueryInterface() with a WARN. 2012-04-04 17:22:23 +02:00
Henri Verbeet 4f91eb3fe1 ddraw: Keep track of the ddraw version used to create a device.
This also obsoletes the "from_surface" device field.
2012-04-04 17:22:19 +02:00
Henri Verbeet cdd2d7f258 ddraw/tests: Add some QueryInterface() tests for surfaces. 2012-04-03 12:00:41 +02:00
Henri Verbeet ecd1c78c48 ddraw: Surface versions before 7 return E_INVALIDARG on failure in QueryInterface(). 2012-04-03 12:00:13 +02:00
Henri Verbeet 75aa0b38f7 ddraw: The various D3D device interfaces can't be queried from version 7 surfaces. 2012-04-03 12:00:10 +02:00
Henri Verbeet 814fd3b39e ddraw: The texture interface shares its refcount with the surface interface version used to create the surface.
This probably implies that on native the texture interface is part of a
separate object that's aggregated by the surface.
2012-04-02 12:39:28 +02:00
Henri Verbeet 7dd4f439e3 ddraw: The texture interfaces can't be queried from version 7 surfaces. 2012-04-02 12:39:22 +02:00
Henri Verbeet 8481625fa4 ddraw: Explicitly check for the IDirectDrawColorControl interface in ddraw_surface7_QueryInterface(). 2012-04-02 12:39:19 +02:00
Henri Verbeet f7719a89ad ddraw: Querying IUnknown for a surface should return the IDirectDrawSurface interface. 2012-03-30 10:43:49 +02:00
Henri Verbeet a623075612 ddraw: Replace a ERR in ddraw_surface7_QueryInterface() with a WARN. 2012-03-30 10:43:44 +02:00
Henri Verbeet f3d1d4790c ddraw: Get rid of a couple of redundant else-statements. 2012-03-30 10:43:33 +02:00
Henri Verbeet 02b6e04a76 ddraw/tests: Add a helper function to create a viewport. 2012-03-27 11:38:41 +02:00
Henri Verbeet 6f35ec6092 ddraw: Make ddraw_surface_wined3d_parent_ops static. 2012-03-26 18:15:07 +02:00
Henri Verbeet fefb5a943d ddraw: Get rid of IDirect3DMaterialImpl. 2012-03-16 11:09:07 +01:00
Henri Verbeet 0c11c316bb ddraw: Get rid of IDirect3DViewportImpl. 2012-03-15 19:52:05 +01:00
Henri Verbeet 7b918934e6 ddraw: Get rid of IDirect3DLightImpl. 2012-03-14 11:48:45 +01:00
Henri Verbeet 2071026acd ddraw: Don't return a pointer to the implementation in IDirectDrawClassFactoryImpl_QueryInterface(). 2012-03-14 11:48:41 +01:00
Henri Verbeet d92a103fc0 ddraw: Don't return a pointer to the implementation in IDirect3DMaterialImpl_QueryInterface(). 2012-03-14 11:48:37 +01:00
Henri Verbeet 9157006fc1 ddraw: Don't return a pointer to the implementation in IDirect3DDeviceImpl_7_QueryInterface(). 2012-03-14 11:48:32 +01:00
Henri Verbeet f6bb0a9016 ddraw: Don't return a pointer to the implementation in ddraw7_QueryInterface(). 2012-03-14 11:48:26 +01:00
André Hentschel b9c1e5ad32 ddraw: Fix a typo. 2012-03-13 10:38:17 +01:00
Henri Verbeet d0a37cdeb5 ddraw: Get rid of IDirectDrawPaletteImpl. 2012-03-13 10:26:54 +01:00
Henri Verbeet 9e44c4bc58 ddraw/tests: Fix a couple of return value checks. 2012-03-13 10:26:49 +01:00
Henri Verbeet 5f43cd2631 ddraw: Get rid of IDirectDrawSurfaceImpl. 2012-03-12 10:44:01 +01:00
Henri Verbeet 1cee1891fd ddraw: Get rid of IDirectDrawImpl. 2012-03-09 11:32:35 +01:00
Henri Verbeet 4c8ee13d5b ddraw: Trace color keys in hex. 2012-03-08 17:58:08 +01:00
Henri Verbeet 3c5a2549c5 ddraw/tests: Add tests for color keyed texturing with an alpha channel. 2012-02-29 10:31:20 +01:00
Stefan Dösinger f8d6d0300b ddraw/tests: LONG/ULONG and error checking fixes. 2012-02-27 14:15:31 +01:00
Francois Gouget cdac8cb176 ddraw/tests: Fix compilation on systems that don't support nameless unions. 2012-02-27 12:54:14 +01:00
Henri Verbeet 19199bc524 ddraw/tests: Add tests for z-clipping with D3DRENDERSTATE_ZENABLE disabled. 2012-02-24 09:55:56 +01:00
Henri Verbeet f20e07b77b ddraw: Always pin surfaces. 2012-02-22 11:26:32 +01:00
Henri Verbeet ed47f259bd wined3d: Don't take the wined3d mutex during WM_DISPLAYCHANGE either. 2012-02-21 11:30:10 +01:00
Matteo Bruni 769fd080f8 ddraw: Don't leak the window DC. 2012-02-08 17:20:22 -06:00
Francois Gouget 527e1ae1ac ddraw/tests: Fix compilation on systems that don't support nameless unions. 2012-02-06 10:19:53 -06:00
Henri Verbeet 204e53e449 ddraw: Implement get_window_region() on top of GetRandomRgn().
Instead of just GetClientRect(). This fixes a regression introduced by
3e9fe3e938. We also need to clip against e.g.
the screen edges instead of just the client rect.
2012-02-06 10:19:31 -06:00
Henri Verbeet 7fda67d74a ddraw/tests: Move some helper functions up with the rest of the helper functions. 2012-02-05 09:36:11 -06:00
Henri Verbeet 98bd3ef803 ddraw/tests: Use correct COM macros in a couple of places. 2012-02-05 09:34:05 -06:00
Stefan Dösinger acf82ff1f5 ddraw/tests: Add some IDirect3DViewport interface tests. 2012-02-02 12:59:36 +01:00
Stefan Dösinger 4775c76208 ddraw/tests: Add an IDirect3DDevice7::Load color key test. 2012-01-31 17:49:27 +01:00
Stefan Dösinger cfc9e120ae ddraw/tests: Add an IDirect3DTexture2::Load color key test. 2012-01-31 17:49:23 +01:00
Stefan Dösinger 2bd56ac553 ddraw/tests: Add an IDirect3DTexture::Load color key test. 2012-01-31 17:49:19 +01:00
Stefan Dösinger 551c732d74 ddraw: Properly set the color key in texture::load. 2012-01-31 17:49:15 +01:00
Henri Verbeet 0d8e6719d5 ddraw: AddAttachedSurface() just references whatever we pass it. 2012-01-31 13:46:30 +01:00