Stefan Dösinger
34b37fe241
d3d: Remove IWineD3DDevice::SetHwnd.
2008-08-19 12:22:05 +02:00
Stefan Dösinger
e178ddd9e1
wined3d: Use a swapchain for GDI surfaces.
...
This is a long-needed cleanup aimed at removing the ddraw_primary,
ddraw_window, ddraw_width and ddraw_height members from
IWineD3DDeviceImpl, which just do not belong there. Destination
window and screen handling is supposed to be done by swapchains.
2008-08-19 12:21:32 +02:00
Stefan Dösinger
851dd7339e
wined3d: Implement overlay flipping.
2008-08-05 14:09:36 +02:00
Stefan Dösinger
e795d842ec
wined3d: Implement overlay position tracking.
2008-08-05 14:09:36 +02:00
Stefan Dösinger
a47e7badb9
ddraw: Set ddraw caps in wined3d.
...
Currently the ddraw capabilities were almost static, except of D3D
support. When overlay support is added, the caps depend on certain
settings in WineD3D or capabilities available from OpenGL and Xv. So
set those caps in wined3d as well.
2008-08-04 13:10:11 +02:00
Tobias Jakobi
69797d7f3d
ddraw: Fix typo in copy_mipmap_chain.
2008-07-28 14:25:09 +02:00
Alexander Dorofeyev
e2ff077697
ddraw: Improve IDirect3DDevice7_Load implementation.
...
Copies palette and colorkey earlier in the helper function, before
copying image, also skips UpdateSurface when palette is missing. This
prevents unnecessary surface (re)loads in wined3d, and gets rid of
some wined3d palette error messages in Sacrifice.
2008-07-22 15:20:33 +02:00
Alexander Dorofeyev
2be93ce6b0
ddraw/tests: Add tests for surface caps memory flags.
2008-07-17 11:21:48 +02:00
Alexander Dorofeyev
59fc5a75e0
ddraw: Force surfaces without memory flags to video memory on creation.
...
Also removes now redundant setting of vidmem flag on rendertargets, prevents
adding vidmem flag when sysmem flag is present. Fixes missing textures in Forsaken.
2008-07-17 11:21:39 +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
Alexander Dorofeyev
cb5e06c944
ddraw: Implement FPU mode fixup in d3d7 device.
...
As documented in DirectX7 SDK, d3d7 devices set FPU mode (control word) on every
call and restore it back to original state before returning, if created in
DDSCL_FPUPRESERVE cooperative mode. This allows games to work with FPU in a
possibly incompatible mode and avoid resetting it all the time.
2008-06-23 19:59:33 +02:00
Michael Karcher
606186d4c5
ddraw: Ensure to load wined3d before attempting to create a clipper.
2008-06-23 14:11:58 +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
Francois Gouget
476cb96b75
ddraw: Remove trailing spaces in Wine traces.
2008-05-30 10:01:11 +02:00
Alexander Dorofeyev
940ef7a9ff
ddraw: Do not return modes differing only by refresh rate without DDEDM_REFRESHRATES.
2008-05-29 12:09:19 +02:00
Jens Albretsen
a2b645128f
ddraw: Test for IDirect3DTexture_Load of Texture into itself.
2008-05-28 19:31:35 +02:00
Jens Albretsen
46ef2e06fc
ddraw: IDirect3DTextureImpl_Load failed when texture was loading onto itself.
2008-05-28 19:31:29 +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
Andrew Talbot
5bf9e88cce
ddraw: Memory allocation size fix.
2008-05-13 10:40:00 +02:00
Alexander Dorofeyev
17dacf90b2
ddraw: Fix some code unprotected by ddraw lock.
2008-05-12 19:41:46 +02:00
Alexander Dorofeyev
ebf1f4e6bb
ddraw/tests: Add KEYSRCOVERRIDE test in p8_primary_test.
2008-05-09 11:19:43 +02:00
Andrew Talbot
a6746b9e7b
ddraw: Indentation fix.
2008-05-07 12:24:04 +02:00
Francois Gouget
42a61d7ed7
Assorted spelling fixes.
2008-05-06 16:10:20 +02:00
Alexander Dorofeyev
c4d75213ab
ddraw/tests: Add tests for IDirect3DDevice7_Load.
2008-05-06 11:26:24 +02:00
Alexander Dorofeyev
d6ecf5d14d
ddraw: Return DDERR_NOCOLORKEY when there is no colorkey.
2008-05-06 11:26:15 +02:00
Alexander Dorofeyev
7e8be9ecc0
ddraw: Add full implementation of IDirect3DDevice7_Load.
2008-05-06 11:26:10 +02:00
Alexander Dorofeyev
30221f7bcd
ddraw: Fix some texture blending modes.
2008-05-05 19:55:30 +02:00
Alexander Dorofeyev
8f72961e50
ddraw: Move handling of D3DRENDERSTATE_TEXTUREMAPBLEND from d3ddevice2 to d3ddevice3.
2008-05-05 19:55:13 +02:00
Alexander Dorofeyev
edaaf63bd6
ddraw: Move handling of D3DRENDERSTATE_TEXTUREHANDLE from d3ddevice7 to d3ddevice3.
...
As supported by tests, there is no reason for this state to be handled by
d3ddevice7, and moving it to d3ddevice3 prepares for the changes in next patch
(setting TEXTUREHANDLE state can then go through SetTexture of d3ddevice3).
2008-05-05 19:55:05 +02:00
Alexander Dorofeyev
d5db7615a2
ddraw/tests: Add test for deprecated render states in d3d7.
2008-05-05 19:54:48 +02:00
Roderick Colenbrander
feb753c98d
ddraw: Enable EnableAutoDepthStencil to receive depth support.
2008-05-02 11:33:38 +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
Jens Albretsen
cf38e4c930
ddraw: Fixed device name.
2008-04-28 14:33:57 +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
Andrew Talbot
6edfd10868
ddraw: Remove unused variables.
2008-04-18 13:57:15 +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
Alexander Dorofeyev
44143a97c7
ddraw: Temporarily activate viewport when clearing.
2008-04-11 13:04:34 +02:00
Alexander Dorofeyev
3e237c6199
ddraw: Set active_device in AddViewport.
2008-04-11 13:04:26 +02:00
Alexander Dorofeyev
6a48e405db
ddraw: Add possibility to ignore lights in viewport_activate.
...
Mostly NOP regarding existing functionality, but makes it possible to skip light
activation when it's not needed (like when clearing).
2008-04-11 13:04:19 +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
Stefan Dösinger
ee13cc4903
ddraw: Some EnumZBufferFormat fixes.
2008-03-27 11:10:29 +01:00
Stefan Dösinger
8662bd7555
ddraw: Fix some Z buffer formats.
2008-03-27 11:10:20 +01:00
Francois Gouget
eab196b35a
ddraw: Remove trailing spaces in ok() calls.
2008-03-27 11:05:40 +01:00
Stefan Dösinger
8869c0f147
d3d: De-pointerize the WINED3DCAPS structure.
2008-03-25 19:36:38 +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
Christian Costa
c8837b8205
ddraw: DDRAW_dump_flags_nolf must not add LF.
2008-03-25 11:45:05 +01:00
Alexander Dorofeyev
e2d8e291d6
ddraw: Fix vertex processing.
2008-03-24 20:41:19 +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
Alexander Dorofeyev
4b53dde0f5
ddraw: Make SetPalette fail for non-palettized surfaces.
2008-03-24 20:40:00 +01:00
Roderick Colenbrander
41310080a5
ddraw: Use a correct resource type and a valid format.
2008-03-21 15:20:21 +01:00
Cihan Altinay
49c682470c
ddraw: Fix refcounting of palettes.
2008-03-17 15:16:03 +01:00
Denver Gingerich
248ae8f112
ddraw: Implement ForceRefreshRate registry entry for overriding DirectX refresh rate.
2008-03-11 15:30:37 +01:00
Rico Schüller
4188af790a
ddraw: Fix diffuse and specular color types.
2008-03-06 12:46:46 +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
Rob Shearman
48000893f9
makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
...
Only specify the root to keep platform-specifics out of the individual
DLL makefiles.
2008-03-04 20:55:01 +01:00
Stefan Dösinger
069b9c8c1c
ddraw: Catch No-op SetRenderTarget operations.
2008-03-03 20:45:54 +01:00
James Hawkins
26ad93947b
janitorial: Remove links to any microsoft site.
2008-03-01 12:04:09 +01:00
Rob Shearman
f2b77031c3
ddraw: Don't use typeof as it's not portable.
2008-02-27 14:52:24 +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
Roderick Colenbrander
e2d70fff6b
ddraw: Add yv12 detection support.
2008-02-22 12:04:01 +01:00
Alexander Dorofeyev
29d87c6cbf
ddraw/tests: Add a test of D3DTBLEND_MODULATE with P8 texture.
2008-02-21 12:53:00 +01:00
Alexander Dorofeyev
9af59fb7f0
ddraw: Release interfaces when exiting with error.
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
Michael Stefaniuc
01cba07624
ddraw: Add missing unlock on error path. Found by Smatch.
2008-02-19 20:54:50 +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
ed44f9d130
ddraw: Fix palette handling in IDirect3DTexture_Load.
...
This fixes a potential refcounting problem and makes the function fail with NULL
destination texture's palette and non-NULL source palette like it does on native.
2008-02-19 13:39:17 +01:00
Alexander Dorofeyev
ddd0ec1670
ddraw/tests: Add test for branch instruction with non-zero offset.
2008-02-19 12:06:50 +01:00
Alexander Dorofeyev
4981eda895
ddraw: Fix executebuffer branching with non-zero offset.
...
Fixes a crash in Moto Racer 2.
2008-02-19 12:06:38 +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
Lei Zhang
8bbb3d68e1
ddraw: Register the DirectDraw 7 Object.
2008-01-23 11:31:42 +01:00
Alexander Dorofeyev
320e253805
ddraw/tests: Add test for D3DTBLEND_MODULATE.
2008-01-22 11:19:34 +01:00
Alexander Dorofeyev
6810ebb4c1
ddraw: Fix handling of alpha with D3DTBLEND_MODULATE.
2008-01-22 11:19:18 +01:00
Francois Gouget
44b52b128c
Assorted spelling fixes.
2008-01-16 12:48:29 +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