Christian Costa
be29e3708b
Finish moving d3d[1..3] light code to use d3d7.
2005-10-31 10:05:15 +00:00
Christian Costa
c656dfc39c
Enumerate only requested modes by taking into account surface desc
...
when present.
2005-10-17 08:55:27 +00:00
Christian Costa
85155cc6be
Disable depth test when there is no Z buffer attached.
...
Initialise texture states at creation instead of when tex name is
generated.
2005-10-12 21:05:40 +00:00
Lionel Ulmer
002608224d
Add an assert if both arguments to DD_STRUCT_COPY_BYSIZE are equal.
2005-10-10 19:53:37 +00:00
Lionel Ulmer
dfd1153f1d
- do not pass private data to the application but a copy of it
...
- add some more traces
2005-10-10 10:44:23 +00:00
Lionel Ulmer
ef735703e8
- pass a copy of the surface description to the application
...
- increase the surface reference count when giving the surface pointer
to the caller
2005-10-10 10:28:05 +00:00
Raphael Junqueira
9e18b7efa9
Don't crash if pDDSD is NULL on DirectDrawSurface::Lock.
2005-10-07 15:01:02 +00:00
Stefan Dösinger
71af04b60c
- Add handling for DDSCL_SETFOCUSWINDOW in SetCooperativeLevel.
...
- Print a fixme for DDSCL_CREATEDEVICEWINDOW and
DDSCL_SETDEVICEWINDOW.
- Don't allow DDSCL_EXCLUSIVE without DDSCL_FULLSCREEN.
2005-10-06 12:26:04 +00:00
Alexandre Julliard
7e22be4d84
We are no longer generating .dbg.c files.
2005-09-29 10:35:58 +00:00
Alexandre Julliard
860c4fe7de
The clip list is in screen coordinates so we need to map the result of
...
GetRandomRgn if the Windows version is win9x.
2005-09-27 09:34:24 +00:00
Christian Costa
3d6154aa33
Implement Begin/Vertex/End rendering functions.
2005-09-25 15:18:18 +00:00
Alexandre Julliard
157f974159
Use Get/SetWindowLongPtr to access pointers in the window extra
...
bytes.
2005-09-12 15:38:56 +00:00
Alexandre Julliard
c6b005ac69
Fixed some more traces to use the right printf format and avoid
...
typecasts.
2005-09-12 14:12:46 +00:00
Saulius Krasuckas
f1853ba186
- DirectDrawCreateEx fails with Standard VGA Adapter driver.
...
- IDirect3D7::CreateDevice() returns E_OUTOFMEMORY if a card has no 3D
acceleration.
2005-08-25 19:19:46 +00:00
Saulius Krasuckas
6b702cc84c
Skip testing on IDirect3D7::CreateDevice() failure.
2005-08-23 19:59:35 +00:00
Saulius Krasuckas
328d3107e1
Don't leak a list of visuals (with advice of Jacek Caban).
2005-08-22 18:58:27 +00:00
Maxime Bellengé
cb0a4595ba
Fix regression in color keying with RGB mask.
2005-08-22 09:20:51 +00:00
Christian Costa
244762bbcc
Take RGB mask into account when doing color keying.
...
Add corresponding conformance test.
2005-08-17 09:52:56 +00:00
Mike McCormack
b814be9814
Fix gcc 4.0 warnings.
2005-08-11 10:57:47 +00:00
Alexandre Julliard
d37f0abf07
Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
...
Dll(Un)RegisterServer with the dll name so that the compiler can check
the prototypes.
2005-08-08 17:35:28 +00:00
Francois Gouget
65f2082108
Add missing WINAPI to MSXML_DllGetClassObject().
...
Standardize the DllGetClassObject() prototypes so they match the MSDN
definition.
2005-08-08 15:04:53 +00:00
Alexandre Julliard
49b7fdcfc0
Removed the broken mmap64 configure check, and moved the
...
_FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
need the define include it.
2005-08-03 21:25:10 +00:00
Mike McCormack
82f9c97cbf
Warning fixes.
2005-08-01 09:22:26 +00:00
Alexandre Julliard
76ed2835cd
Make CONST_VTABLE the default in the Wine source.
2005-07-26 20:10:51 +00:00
Vincent Béron
05b2c1cc81
Remove multiple declarations of the same function, keeping the public
...
one as reference.
2005-07-24 16:17:28 +00:00
Mike McCormack
2d7ea23868
Interlocked LONG* gcc warning fixes.
2005-07-11 13:21:17 +00:00
Francois Gouget
28dc5a8afc
Assorted spelling fixes.
2005-07-11 10:59:41 +00:00
Marcus Meissner
1e3dda640c
Make check fails in dlls/ddraw/tests/d3d, because a heap allocate is
...
fed to wrong size. (sizeof(BOOLEAN) is 1 , but ative_lights is a DWORD
array).
2005-07-03 11:21:32 +00:00
Alexandre Julliard
aa0b9aac0d
Sort entry points alphabetically.
2005-06-22 18:38:23 +00:00
Stefan Huehner
9213d56ae0
Make some function static.
2005-06-20 15:35:54 +00:00
Stefan Huehner
ac6f562b52
Fix more -Wstrict-prototypes warnings.
2005-06-20 14:18:03 +00:00
Francois Gouget
6394a15314
Assorted spelling fixes.
2005-06-17 20:59:49 +00:00
Alexandre Julliard
c2d5b444b3
Moved the NONAMELESSUNION/STRUCT macros to wine/test.h so that they
...
can be used in all the test.
2005-06-13 12:10:54 +00:00
Lionel Ulmer
78e95198cb
Support all possible texture coordinates sizes.
2005-06-12 10:43:11 +00:00
Stefan Leichter
ff23e5a916
Make ddraw tests loadable on NT4.
2005-06-09 20:38:21 +00:00
Antoine Chavasse
926e35532c
Test cases for the direct3d7 light api.
2005-06-07 21:34:59 +00:00
Antoine Chavasse
b65e790bd3
Rewrote the light management API to allow for an unlimited amount of
...
lights to be set, and only a subset of them to be enabled.
2005-06-07 21:34:40 +00:00
Christian Costa
69c3e6ff11
Moved d3ddevice and direct3d objects files to ddraw root dir.
...
Renamed all remaining files.
2005-06-06 15:51:50 +00:00
Christian Costa
8d0480d754
Moved dsurface object files to ddraw root dir.
2005-06-05 17:50:49 +00:00
Christian Costa
96eb47392c
Moved ddraw object files to ddraw root dir.
2005-06-04 09:34:54 +00:00
Christian Costa
4dadfc481a
Moved clipper and palette objects files to ddraw root dir.
2005-06-03 11:30:11 +00:00
Christian Costa
719187f190
Merged remaining header files in DirectDraw objects folders into
...
ddraw_private.h.
2005-06-02 10:33:06 +00:00
Christian Costa
b3473bbcf2
Merged d3ddevice/main.h and direct3d/main.h into d3d_private.h.
...
Fixed Thunk_IDirect3DImpl_2_CreateViewport.
2005-06-01 19:52:25 +00:00
Christian Costa
1c196c5923
Merged convert.c, struct_convert.c and helper.c into ddraw_utils.c.
2005-05-31 09:32:44 +00:00
Antoine Chavasse
477ddd8e4d
- Implemented the implicit creation of mipmaps for surfaces that have
...
DDSCAPS_COMPLEX, DDSCAPS_MIPMAP and for which the mipmap count is
not specified.
- Implemented test cases for mipmap textures creation.
2005-05-30 11:11:34 +00:00
Dmitry Timoshkov
4625628e67
Make some of the OLE interface vtables const.
2005-05-27 20:17:35 +00:00
Antoine Chavasse
9593c4ea16
Added traces in GetPrivateData and SetPrivateData.
...
Made SetPrivateData actually store the data from the buffer as well as
its size.
2005-05-23 11:42:40 +00:00
Alexandre Julliard
34fa35dc99
Added rules for building import libraries in the individual dll
...
makefiles, and added support for building a .def.a static import
library too.
2005-05-09 14:42:30 +00:00
Alexandre Julliard
d62356aa1e
Added rules to build import libraries in the individual dll makefiles.
...
Generate import libraries with the right name right away instead of
using an intermediate .spec.def file.
2005-05-07 12:39:52 +00:00
Lionel Ulmer
ba9ce8c7d6
'0' means 'default refresh rate' and not a real refresh rate of '0'.
2005-05-07 12:17:45 +00:00
Alexandre Julliard
c3116c5e61
Renamed ttydrv and x11drv to winetty.drv and winex11.drv respectively
...
to follow the namespace conventions and make it clear that they are
drivers and not dlls.
Moved the graphics driver configuration to HKLM\Software\Wine\Drivers.
2005-05-06 19:38:50 +00:00
Marcus Meissner
accf3ee2e6
Fixed 3 memset()s which used the wrong size (too large).
2005-04-25 10:48:38 +00:00
Dylan Taft
14b3729ac3
Set display frequency too in SetDisplayMode.
2005-04-24 17:23:39 +00:00
Matthew Mastracci
11959ba310
Correctly lock and unlock surface for a single-surface Blt() and
...
BltFast() call.
2005-04-11 14:26:00 +00:00
Lionel Ulmer
acdc84e673
Create the GL texture id at texture-binding time.
2005-04-11 12:51:22 +00:00
Jakob Eriksson
9ed61de9a2
Get rid of HeapAlloc casts.
2005-03-24 21:01:35 +00:00
Christian Costa
967f11dd8d
Removed wrong FIXMEs.
2005-03-21 10:28:49 +00:00
Matthew Mastracci
9eead12471
If a FOURCC surface specifies DDSD_PITCH, use that instead of
...
dwLinearSize.
2005-03-21 10:28:09 +00:00
Jakob Eriksson
d4727291ca
SetDisplayMode can return DDERR_UNSUPPORTED. If it does, we shouldn't
...
try to restore something either.
2005-03-16 19:49:25 +00:00
Paul Vriens
fc1f63d279
Check always if destination surface is locked.
2005-03-10 11:13:11 +00:00
Paul Vriens
327049504b
Check for NULL before touching src.
2005-03-09 18:42:35 +00:00
Matthew Mastracci
9cf27b5f1a
Added surface locking.
2005-03-07 12:23:34 +00:00
Matthew Mastracci
2565f7311c
Add DDCAPS_OVERLAY and DDCAPS_OVERLAYSTRETCH to GetCaps().
2005-03-07 11:01:10 +00:00
Christian Costa
e64aae00e0
Handle more properly versions for Direct3D and Direct3DDevice
...
objects.
2005-02-14 11:09:46 +00:00
Raphael Junqueira
52bf5023fb
Set default video memory to 64Mb (was 16Mb) as many d3d9 demos use
...
d3d7 code to get available video memory size (ex ConfigSystem.exe on
d3d9 sdk).
2005-01-27 10:42:24 +00:00
Francois Gouget
87b0906789
Assorted spelling fixes.
2005-01-10 13:29:24 +00:00
Paul Vriens
202b340a51
- use Interlocked* functions in AddRef and Release.
...
- store the result of the Interlocked functions and use only this.
2005-01-09 17:29:21 +00:00
Eric Pouech
cf1d00bb08
Removed excessive statement (break after return or goto, not useful
...
break, not needed vars...)
2005-01-09 16:42:53 +00:00
Mike McCormack
4a0f999859
Use CreateEventW in preference to CreateEventA for unnamed events.
2005-01-07 15:40:09 +00:00
Alexandre Julliard
75f87dd43f
Get rid of the ThunkData stubs, these are not functions.
2005-01-03 20:47:48 +00:00
Christian Costa
65a4775b30
Handle correctly DDSD_LINEARSIZE flag for FOURCC textures.
2005-01-03 14:41:08 +00:00
Christian Costa
171c9420c2
Fake line sweeping of the monitor.
2004-12-27 17:12:55 +00:00
Michael Stefaniuc
5ad7d858e0
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2004-12-23 17:06:43 +00:00
Crestez Leonard
f4205ad71f
Check for malformed source rect in DIB_DirectDrawSurfact_BltFast, and
...
return DDERR_INVALID_RECT.
2004-12-21 14:47:35 +00:00
Christian Costa
3bb7f70f6b
Enable creation of the RGB device.
2004-12-20 17:08:41 +00:00
Alexandre Julliard
ebe3c529b1
Janitorial: C booleans must not be compared against TRUE.
2004-12-09 14:07:59 +00:00
Dmitry Timoshkov
627260f89e
Avoid crashes in ddraw.dll when loading it without x11drv, for
...
instance from wineprefixcreate in a text mode console.
2004-12-06 16:21:27 +00:00
Eric Pouech
0a258964c2
Const correctness fixes.
2004-11-30 21:38:57 +00:00
Tom Wickline
5c38e1b561
Version resources cleanup.
2004-11-23 13:59:34 +00:00
Christian Costa
0948ed709e
Fixed colorkey conversion.
...
Handle null surface pointer when creating surface.
2004-11-19 18:05:15 +00:00
Francois Gouget
3bb5b093e8
Assorted spelling fixes.
2004-10-22 22:27:51 +00:00
Francois Gouget
486d020c1b
Don't define COBJMACROS in objbase.h.
...
Update the Wine sources accordingly.
2004-10-07 03:06:48 +00:00
Huw Davies
e8d89cd0f5
Fix a reference leak on failure (spotted by Rob Shearman).
...
Move some code over to the Interlocked* functions.
2004-09-28 19:19:27 +00:00
Alexandre Julliard
f5f7a1822c
Removed some more uses of the non-standard ICOM_THIS macro.
2004-09-08 01:50:37 +00:00
Hans Leidekker
fe442b21f7
Fix signed/unsigned comparison warnings.
2004-09-08 01:23:57 +00:00
James Hawkins
fae181b099
Added API documentation for DirectDrawEnumerateEx.
2004-08-30 18:37:17 +00:00
Robert Shearman
9e2e594a1c
Implement IDirectDrawClipper_GetClipList for case where we have a
...
handle to a window.
2004-08-24 20:14:26 +00:00
Alexandre Julliard
f714b39762
Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
...
macro.
2004-08-23 19:39:48 +00:00
Tobias Burnus
998a827370
- Limit number of FIXME()s in Clipper_SetClipList and document
...
function.
- Document Clipper_GetClipList.
2004-08-23 18:50:14 +00:00
Alexandre Julliard
48c4bb3c31
Get rid of the non-standard ICOM_VTABLE macro.
2004-08-12 23:00:51 +00:00
Christian Costa
479c13b84e
Implemented IDirect3DDevice{2,3}::GetLightState.
...
Fixed traces in execute buffers.
Updated copyright info.
2004-08-06 17:30:44 +00:00
Lionel Ulmer
fbf003dd39
- add S3TC support to BltFast (fixes NOLF)
...
- proper surface unlocking in case of error in the Blt case
2004-08-02 22:21:30 +00:00
Christian Costa
5e6487fe78
Improved IDirect3DViewportImpl_3_2_1_TransformVertices stub.
2004-08-02 18:27:32 +00:00
Christian Costa
0bbe91213d
Fixed D3DOP_STATELIGHT opcode.
...
Implemented _dump_D3DEXECUTEBUFFERDESC.
2004-08-02 18:26:53 +00:00
Christian Costa
9713f651fe
Moved libtxc_dxt definitions into ddraw headers.
2004-08-02 18:24:40 +00:00
Lionel Ulmer
5ffe177543
- Fix compilation on boxes without OpenGL installed.
...
- Print the warning message only once.
2004-08-02 18:24:04 +00:00
Christian Costa
eac96b5606
Added native and emulated S3TC support.
2004-07-30 18:54:32 +00:00
Lionel Ulmer
c9eb05e560
Better handle the frame-buffer locking case.
2004-07-12 19:47:48 +00:00
Marcus Meissner
42e1216cf5
COPY_COLORKEY_FX: Do not use lvalue casts.
2004-07-06 18:43:10 +00:00
Lionel Ulmer
112c426c47
Move the FPS computation from the D3D code to the common code.
2004-06-04 19:37:16 +00:00