Michael Stefaniuc
ef104dc465
ddraw: Add missing unlock on an error path (Smatch).
2010-09-29 10:06:36 +02:00
Paul Vriens
c0ff1aec03
ddraw: Pass the correct size to memset (Coccinelle).
2010-09-21 20:16:15 +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
Henri Verbeet
53183b4cf3
wined3d: IWineD3DSurface_GetDesc() should never fail.
2010-09-08 13:31:43 +02:00
Henri Verbeet
6c4c351791
wined3d: Don't require wined3d object parents to be COM objects.
2010-09-01 14:01:02 +02:00
Henri Verbeet
2ef400901d
wined3d: Devices don't need parents.
2010-09-01 12:40:07 +02:00
Henri Verbeet
c568916f9e
wined3d: Implicit depth/stencil surfaces don't have a container.
...
They're owned by the device instead of the swapchain.
2010-08-31 14:23:47 +02:00
Henri Verbeet
cc5271d1b7
wined3d: Rename WINED3DFORMAT to wined3d_format_id.
2010-08-24 12:25:01 +02:00
Henri Verbeet
9364f80b8c
ddraw: Failing surface creation is not an internal error.
2010-08-23 12:05:16 +02:00
Henri Verbeet
c3cdebcf44
ddraw: Make some lookup tables const.
2010-08-23 12:04:31 +02:00
Henri Verbeet
20a42b4c98
ddraw: Add / improve TRACEs.
2010-08-20 13:21:24 +02:00
Henri Verbeet
4378d4b31e
ddraw: Add a separate function for surface initialization.
2010-08-20 13:21:24 +02:00
Henri Verbeet
c87fd4a65c
ddraw: Add a separate function for ddraw initialization.
2010-08-20 13:21:23 +02:00
Henri Verbeet
0e955daed2
ddraw: Add a separate function for vertex buffer initialization.
2010-08-20 13:21:23 +02:00
Henri Verbeet
e2021722fc
ddraw: Add a separate function for palette initialization.
2010-08-20 13:21:23 +02:00
Henri Verbeet
a60c493986
ddraw: Add a separate function for device initialization.
2010-08-20 13:21:21 +02:00
Henri Verbeet
4b84c5e5b7
ddraw: Add a separate function for clipper initialization.
2010-08-19 11:18:20 +02:00
Henri Verbeet
759fd517aa
ddraw: Add a separate function for parent initialization.
2010-08-19 11:18:16 +02:00
Henri Verbeet
921bd1bf9a
ddraw: Add a separate function for viewport initialization.
2010-08-19 11:18:12 +02:00
Henri Verbeet
bf26c2c869
ddraw: Add a separate function for material initialization.
2010-08-19 11:17:57 +02:00
Henri Verbeet
c892ed497c
ddraw: Add a separate function for light initialization.
2010-08-19 11:17:48 +02:00
Henri Verbeet
c5a14085d4
ddraw: Remove unused / redundant includes.
2010-08-19 11:17:41 +02:00
Henri Verbeet
fee9c1f2b5
ddraw: Remove a useless viewport callback.
2010-08-18 09:41:01 +02:00
Henri Verbeet
14399f6130
ddraw: Remove a useless material callback.
2010-08-18 09:40:55 +02:00
Henri Verbeet
06a44abc19
ddraw: Remove useless light callbacks.
2010-08-18 09:40:32 +02:00
Henri Verbeet
8394f00661
ddraw: Merge direct3d.c into ddraw.c.
2010-08-18 09:40:29 +02:00
Michael Stefaniuc
f55e2374a0
ddraw: Use FAILED instead of NOT SUCCEEDED.
2010-08-16 13:46:42 +02:00
Marcus Meissner
a58f31dd27
ddraw: Tighten up checks in DuplicateSurface (Coverity).
2010-07-26 18:38:29 +02:00
Henri Verbeet
ce8f6ecf6e
ddraw: Merge the surface thunks into surface.c.
2010-07-20 13:13:04 +02:00
Henri Verbeet
6fb9ee0ee7
ddraw: Merge the ddraw thunks into ddraw.c.
...
Note how both ddraw 1 and ddraw 7 used the same IDirectDrawImpl_XXX naming
convention.
2010-07-20 13:13:04 +02:00
Henri Verbeet
f461b39b76
ddraw: Get rid of the useless "ddraw_owner" fields.
2010-07-19 14:49:07 +02:00
Henri Verbeet
16b3f17f87
ddraw: Avoid some forward declarations.
2010-07-19 14:49:07 +02:00
Francois Gouget
7649c75b40
Assorted typo and spelling fixes.
2010-06-24 10:37:05 +02:00
Henri Verbeet
e4a4065bbd
ddraw: Register / unregister the ddraw window class from DllMain().
...
This avoids failing in DDRAW_Create() if a previous IDirectDrawImpl object
with the same pointer value was imporperly cleaned up. The improper cleanup is
of course the larger problem, but I don't believe that can be fixed without
making more invasive changes to ddraw.
2010-06-18 15:22:22 +02:00
Johan Gill
7c90c1a0b5
ddraw: Do not restore the display mode from inside SetCooperativeLevel.
2010-04-19 16:06:01 +02:00
Henri Verbeet
914c8cb8ea
ddraw: Acquire/release the focus window from the correct location.
2010-03-18 10:24:15 +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
Henri Verbeet
aa305c4a24
ddraw: Don't depend on IWineD3DDevice_CreateSurface() not touching the surface parameter on failure.
...
The reason it actually fails is because of ddraw trying to create surface of
type "SURFACE_UNKNOWN". Stefan should have a patch for that.
2009-12-18 11:38:30 +01:00
Henri Verbeet
ddddc60eb9
ddraw: Avoid enumerating display modes for formats that arent't supported anyway.
...
Some of these formats can't even be translated by ddraw.
2009-12-10 11:54:22 +01:00
Henri Verbeet
55f3c576d9
wined3d: Remove the effetively unused "state" field from the device.
2009-11-18 11:16:54 +01:00
Markus Stockhausen
f222a1654e
ddraw: Avoid memory overwrite in GetDeviceIdentifier().
2009-10-30 16:32:53 +01:00
Markus Stockhausen
dbb29993db
ddraw: Set dwBackBufferCount=0 in CreateSurface for backbuffer.
2009-09-29 16:06:47 +02:00
Henri Verbeet
47c84f4f7f
wined3d: Use the DXGI naming convention for all formats.
2009-09-25 15:15:44 +02:00
Henri Verbeet
66a7236590
wined3d: Don't free D3D vertex declarations until the wined3d vertex declaration is destroyed.
2009-09-23 12:36:28 +02:00
Henri Verbeet
93b0600829
wined3d: Don't free D3D buffers until the wined3d buffer is destroyed.
2009-09-18 08:55:25 -05:00
Henri Verbeet
a8e8f763bf
wined3d: Don't free D3D textures until the wined3d texture is destroyed.
2009-09-18 08:54:34 -05:00
Henri Verbeet
de3bd86fb6
wined3d: Don't free D3D cube textures until the wined3d cube texture is destroyed.
2009-09-17 10:09:44 -05:00
Henri Verbeet
a5214c306f
wined3d: Don't free D3D surfaces until the wined3d surface is destroyed.
...
This prevents for example a d3d9 depth stencil from being destroyed when it
has no external references but is still in use by the device/stateblock. A
nice side effect is that it simplifies handling of "implicit" surfaces like
the frontbuffer and backbuffers, as well as the forwarding of reference counts
for surfaces that are part of a texture.
2009-09-16 13:04:32 -05:00
Henri Verbeet
ee60e5fd71
ddraw: Remove trailing spaces.
2009-09-01 14:06:03 +02:00