Gerald Pfeifer
3af9641e6f
#include <stdlib.h> instead of the non-standard <malloc.h>.
2003-01-03 22:32:47 +00:00
Lionel Ulmer
330a1b5f2d
Enable Z buffer by default.
2003-01-03 22:32:30 +00:00
Jason Edmeades
850a9429db
Added basic support for mipmaping, verified using sample from
...
codesampler.com.
2003-01-03 21:28:05 +00:00
Jason Edmeades
3d1b725900
- Use faster vertex arrays (rather than processing vertexes one by
...
one), whenever possible.
- Less trace in the slower form by default.
2003-01-03 21:25:42 +00:00
Lionel Ulmer
f89ea6499d
- some fixes / optimisations in the color keying code
...
- minimize at the maximum texture uploads
2003-01-03 21:17:47 +00:00
Lionel Ulmer
cec93d0abd
- re-activate the color-keying code
...
- fix yet again texture enumeration to please all games :-/
2003-01-03 21:16:03 +00:00
Christian Costa
b110a96226
Reenable device's default render states initialization.
2003-01-03 21:10:11 +00:00
Lionel Ulmer
e51b007088
Fix order of texture enumeration to fix yet another set of dumb games.
2003-01-03 21:09:25 +00:00
Christian Costa
4fc7a8495a
Beginning of state block.
...
Initialize the device with the right D3D default values.
Implements GetRenderState, GetTextureStageState and GetLightState.
2003-01-03 21:08:50 +00:00
Lionel Ulmer
c064dcf50c
- hack for one case of the ProcessVertices case
...
- some changes in the execute buffer to reuse the new Matrix code
- always reinitialize the enumeration structures in case some games
modify them
- added support for the (unused) Reserved1 field in the FVF formats
- fix 32 bit texturing and added more checks
- remove some useless and annoying fixme
2003-01-03 21:07:22 +00:00
Lionel Ulmer
0114945b6d
- create a function to set the various transformation matrices to
...
factorize the code between the various code path
- fixed some logging stuff
2003-01-03 21:05:38 +00:00
Lionel Ulmer
74c95ec008
- more thunking in the D3DVertexBuffer COM object
...
- added 'support' for GetInfo
2003-01-03 21:04:12 +00:00
Lionel Ulmer
d0f1569218
- light improvements
...
- misc. fixes
2003-01-03 21:03:15 +00:00
Dimitrie O. Paun
cef5961d2b
Eliminate lots of __WINE__ conditionals from the headers.
2003-01-03 19:12:55 +00:00
Lionel Ulmer
5f87d778aa
- some additionnal flags logged
...
- fixes in the vertex buffer thunking + optimized flag support
2003-01-03 19:10:48 +00:00
Francois Gouget
f947a58006
Win9x does not support {Get,Set}WindowLongW. Use the Ansi version
...
instead since it won't impact _these_ tests anyway.
2003-01-03 19:09:23 +00:00
Alexandre Julliard
78ff6763ed
Added wine_dbg_sprintf function that allocates a temporary buffer in
...
the per-thread strings area.
Added inline functions to format POINT, SIZE and RECT structures.
2003-01-03 03:12:58 +00:00
Dimitrie O. Paun
dfa6b127c2
SHGetMalloc() returns a HRESULT, not a DWORD.
2003-01-03 03:07:21 +00:00
Lionel Ulmer
5e36ae56b2
Check the value of the pfnCallback in addition to the callback bit.
2003-01-03 03:06:42 +00:00
Stefan Leichter
facaee4fd0
Moved implementation of GetPrinterDriverDirectory from ascii to unicode.
2003-01-03 03:04:46 +00:00
Chris Morgan
fa93b446d0
Listview should scroll by at least one column, fixes bug where item
...
being wider than listview prevents any scrolling from occuring. Added
printing of the scroll code text during tracing of scroll functions.
2003-01-03 03:04:22 +00:00
Dan Kegel
adf55c25db
ShellExecute(NULL, "wordpad.exe",) now correctly finds wordpad.exe in
...
App Paths.
2003-01-03 03:03:36 +00:00
Dominik Strasser
ab8247ae5f
Implement VerSetConditionMask by forwarding to ntdll.
2003-01-03 03:03:07 +00:00
Francois Gouget
e0af6d0218
Call lstrcmpW rather than wcscmp.
2003-01-03 03:02:15 +00:00
Marcus Meissner
8ff278d25e
Implemented SafeArray{SetIID,GetIID,SetRecordInfo,GetRecordInfo}.
...
Added support for FADF_HAVEIID, FADF_RECORD, FADF_HAVEVARTYPE.
Implemented SafeArrayAllocDescriptorEx and SafeArrayGetVarType
correctly.
Fixed second argument of SafeArrayCopyData (it is just SAFEARRAY*).
Changed allocation to include 16 bytes before the SAFEARRAY (to store
IID/VARTYPE/IRecordInfo*).
VARTYPE -> size array was not indexed correctly.
Added lots of testcases for most functionality.
Added IRecordInfo interface definition.
2003-01-02 23:13:56 +00:00
Marcus Meissner
48e583db52
Handle VT_ERROR->VT_I4/VT_R4 coercion.
...
VariantCopy does not need to check the return of VariantClear.
VariantCopyInd now copies VT_UNKNOWN and VT_DISPATCH too.
VarCmp handles VT_BOOL.
VarFormat handles VT_BSTR.
coerce_array fixed for VT_ARRAY|VT_UI1 -> VT_BSTR and VT_ARRAY|x ->
VT_SAFEARRAY cases.
VarCat tries to coerce types into VT_BSTR to do cat.
2003-01-02 23:11:56 +00:00
Marcus Meissner
4beaa06e9d
Process TKIND_ALIAS in SLTG typelibs, 0x14 in the tail is the
...
tdescAlias.vt entry.
Added a small handler for TKIND_DISPATCH in SLTG.
ITypeLib_Release can have a NULL pointer as ITypeInfo*.
Split out _copy_arg function for both DispCall and ITypeInfo_fnInvoke,
added some more functionality.
ITypeInfo_fnInvoke can handle VT_USERDEFINED variants.
2003-01-02 23:11:19 +00:00
Francois Gouget
3b761a6b39
Add the ability of playing a test tone when in interactive mode.
...
Test both primary and secondary buffers.
2003-01-02 23:08:57 +00:00
Alberto Massari
4ab2eac2cd
- Implemented InternetCrackUrlW and re-implemented InternetCrackUrlA
...
by using the Unicode version.
- InternetCrackUrlW now parses URL having the "about" and "res"
schemes.
2003-01-02 23:08:22 +00:00
Lionel Ulmer
442b235e63
Fix for stupid applications reading some bytes after the end of the
...
surface memory.
2003-01-02 20:14:24 +00:00
Lionel Ulmer
00a3d5f3f8
- added enumeration of the Reference device (some games seems to need
...
it to work and they want it enumerated first..)
- some comments about potential problems with Z masking
2003-01-02 20:13:47 +00:00
Lionel Ulmer
4dac4a5580
Added support for per-vertex material properties.
2003-01-02 20:12:16 +00:00
Christian Costa
bc2cf94d2f
Reimplemented SwapTextureHandles.
2003-01-02 20:07:05 +00:00
Lionel Ulmer
ae10e9c5aa
- removed some useless WARNs
...
- fixed backface culling and material settings
2003-01-02 20:05:48 +00:00
Christian Costa
f78cf542dc
Fix IDirect3DVertexBuffer interface.
...
Implements GetVertexBufferDesc.
Remove some useless FIXME.
2003-01-02 20:02:49 +00:00
Lionel Ulmer
d70a2c0322
- beginning of Material and Light support for D3D7
...
- new rendering states supported
2003-01-02 20:01:54 +00:00
Lionel Ulmer
825ad05656
Fixed texturing.
2003-01-02 20:00:25 +00:00
Lionel Ulmer
b07df8a198
- allow application to load palette-less textures
...
- handle palette change of loaded textures
- some changes in the ExecuteBuffer
2003-01-02 19:59:49 +00:00
Lionel Ulmer
bb9837d2a4
- added some tracing in the fake ZBuffer methods
...
- added support for the DEPTH_FILL BLT
- set by defaut perspective correction to nicest.
- decrease the limit where 'w' is ignored
2003-01-02 19:58:21 +00:00
Lionel Ulmer
f0541aa544
Added some blend states.
2003-01-02 19:56:52 +00:00
Christian Costa
eb620386dd
Handle more blend states.
2003-01-02 19:56:08 +00:00
Lionel Ulmer
07bcdf40d1
Prevent memory leak in freeing of the VertexBuffer.
2003-01-02 19:54:09 +00:00
Lionel Ulmer
eb6e830727
Implement GetTransform and rework a bit the matrices storage.
2003-01-02 19:53:43 +00:00
Lionel Ulmer
7a025001d3
- implemented GetTexture
...
- semi-stubbed ValidateTexture
- fixed some errors in logging
2003-01-02 19:52:22 +00:00
Lionel Ulmer
6fb7ed8fa7
Added 'blt' and 'bltfast' override functions.
2003-01-02 19:51:25 +00:00
Lionel Ulmer
ce3d96889f
Added 'emulated' VertexBuffer support.
2003-01-02 19:46:46 +00:00
Lionel Ulmer
c3d89f5566
- do not use the alpha coordinates when ALPHABLEND is disabled
...
- disable fogging in the XYZRHW case
- various other small fixes
2003-01-02 19:45:23 +00:00
Lionel Ulmer
62d4f41ee8
Factorize some code in the texture uploading function.
2003-01-02 19:44:14 +00:00
Lionel Ulmer
da66dad0cc
Handle texture addressing the D3D7 way.
2003-01-02 19:43:08 +00:00
Lionel Ulmer
ffc8344ef2
Prevent lock-up in paletted texture with no palette case.
2003-01-02 19:41:25 +00:00
Lionel Ulmer
8cd2609587
Enable the application to create first textures and then the D3D
...
device.
2003-01-02 19:39:57 +00:00
Dmitry Timoshkov
5a23a0012f
Added ctl3d, ctl3dv2 and ctl3d32 API implementations.
2003-01-02 19:34:14 +00:00
Patrik Stridvall
46304a7361
Fixed some issues found by winapi_check.
2003-01-02 19:28:09 +00:00
Alberto Massari
ca70e84f7f
Moved implementation of strpbrkW from filedlg95.c to wine/unicode.h.
2003-01-02 19:25:44 +00:00
Alberto Massari
c019f53568
Add stub implementation for ReplaceFile.
2003-01-02 19:24:42 +00:00
Eric Pouech
0fcada9fa7
Removed unused #include of module.h.
2003-01-02 17:59:47 +00:00
Raphael Junqueira
559b10699f
- integration with DrawPrimitive
...
- remove non-esthetic c++ comments into c comments block ;)
- more more debug
- indent, cleanups
- trying to use DIFFUSE and SPECULAR for vertex shader
- many fixes
- integration with Jason's texture patch
2003-01-02 17:59:01 +00:00
Lionel Ulmer
1d97f52fa1
Some clean-ups after the DrawPrimitive rewrite.
2003-01-02 17:57:58 +00:00
Lionel Ulmer
3429c3cffe
Fix crash in GetAvailableVidMem function when TRACE is activated.
2003-01-02 17:57:39 +00:00
Eric Pouech
1d854a10b0
When unmapping a (wave|midi)-header unprepare message, make sure the
...
unpreparation was successful.
2003-01-02 17:56:41 +00:00
Eric Pouech
a2251e285a
Fixed some nasty bugs in drawdib creation/deletion.
2003-01-02 17:56:07 +00:00
Dominik Strasser
2e27f8c930
Some stubs for dll setup needed by IE6 setup.
2003-01-02 17:55:45 +00:00
Marcus Meissner
1c421d779d
Support DllGetClassObject of CLSID_StdPicture.
...
PICTYPE_NONE has width/height 0.
2003-01-02 17:54:57 +00:00
Rein Klazes
0e162e4643
Let ANIMATE_OpenA return FALSE (= failure) upon a request to close a
...
previously opened AVI clip when there isn't one.
2003-01-02 17:54:23 +00:00
Gerald Pfeifer
e9ba70c364
Fix off_t cast that breaks FreeBSD.
2003-01-02 17:52:53 +00:00
Francois Gouget
88a5cb569b
Add support for WINETEST_INTERACTIVE. If set then tests can perform
...
additional explicitly interactive tests.
Modify the winmm test to use WINETEST_INTERACTIVE.
2003-01-02 17:52:05 +00:00
Alberto Massari
bb7e49a4e2
IBindCtx::RegisterObjectParam is supposed to replace the old value if
...
the key is already registered.
2003-01-02 17:51:34 +00:00
Duane Clark
521aa7412d
Validate imagelists with christmas magic.
2003-01-02 17:51:13 +00:00
Francois Gouget
dadbce9a44
Fix mapping of STATUS_DEVICE_NOT_CONNECTED to match XP.
...
Fixed the prototype of statustodoserror to make the test work on NT4.
Added alternate return values to make the test work on Win98.
Check whether RtlNtStatusToDosError ismissing to make the test work on
Win95.
Added a strict option to cause the test to only accept the standard
mapping.
2003-01-02 17:50:48 +00:00
Francois Gouget
236ae4d2c9
Remove unnecessary sprintf calls.
2003-01-02 17:49:51 +00:00
Chris Morgan
761dc0d626
Use the locale id we created instead of the system or user default,
...
otherwise some tests are broken on systems where things aren't
english/us.
2003-01-02 17:47:22 +00:00
Francois Gouget
3b640ca405
Fix signed/unsigned warnings.
2003-01-02 17:47:01 +00:00
Alexandre Julliard
6ed40bb2af
Pass the correct instance when installing the mouse hook (spotted by
...
Lionel Ulmer).
2002-12-24 01:18:21 +00:00
Lionel Ulmer
74c3eab255
- actually use the background color when Clear-ing
...
- replace glOrtho by a hand-built matrix
- fix applications doing SetTransform + using XYZRHW vertices
2002-12-24 01:07:21 +00:00
Lionel Ulmer
608da067ac
- factorize Clear method between Viewport and Device
...
- some more rendering states handled
2002-12-24 01:03:04 +00:00
Lionel Ulmer
5f78568b53
Support viewports the D3D7 way.
2002-12-24 01:00:45 +00:00
Lionel Ulmer
c40b756021
Added some stencil / D3DDevice7 capabilities.
2002-12-24 00:58:27 +00:00
Lionel Ulmer
90bf1f2ea8
Combine texturing for D3D3 and 7 by thunking 3 to 7.
2002-12-24 00:53:50 +00:00
Francois Gouget
49e119f95f
Move the test strings into their own array and convert them to unicode
...
using a for loop. This lets us later print the offending string when a
test fails.
Fix the MSVC compilation error (XXXe183) and warnings (put suffixes as
in 0L & 1.0F, signed/unsigned warnings, s/-2147483648/0x80000000L/).
Uncomment the DateFromStr tests and fill in the todo fields where
appropriate.
Define an NB_OLE_STRINGS macro and use it to make sure all the arrays
have the right number of fields.
In the *FromStr loops, fill the return field with a dummy value (42)
before calling the conversion function. This way a test no longer
depends on whether the previous test failed or not!
If a test is expected to fail, then retval is meaningless -> omit it
from the result arrays.
If a test actually fails or was expected to fail, then there is no
point in checking retval.
Improve error reporting.
Pass the printf-style format directly to ok, remove the unnecessary
sprintfs.
2002-12-24 00:49:27 +00:00
Lionel Ulmer
800cb96bd7
Dump new D3D7 rendering states.
2002-12-24 00:48:21 +00:00
Lionel Ulmer
8768a6ba27
- factorize the D3D1/2 draw_primitive code with the new strided function
...
- rewrote a little bit this strided function to always use the static
functions
2002-12-24 00:48:03 +00:00
Alexandre Julliard
37516b3621
The name of the driver should be the 16-bit one in case the app tries
...
to load it.
2002-12-24 00:29:40 +00:00
Dimitrie O. Paun
48be9c6e87
Fix definitions for Uuid{To,From}String, RpcStringFree.
2002-12-24 00:26:55 +00:00
Christian Costa
81ac4adbcb
Remove useless FIXMEs since there is nothing to do in BeginScene and
...
EndScene.
2002-12-24 00:25:55 +00:00
Christian Costa
3da729eab6
Update and clean-up draw_primitive_strided_7.
...
Make draw_primitive_7 based on draw_primitive_strided_7.
2002-12-24 00:25:39 +00:00
Lionel Ulmer
3542c9c4d5
- fix mipmap texture creation
...
- some logging improvements
2002-12-23 02:10:31 +00:00
Lionel Ulmer
19ef31e802
- fix small TRACE bug introduced in a previous patch
...
- add WRAPU / WRAPV warning
2002-12-23 02:09:20 +00:00
Alexandre Julliard
69e711ef01
wineps16.dll should be named .drv.
2002-12-23 02:07:20 +00:00
Jeff Smith
b9f0fce668
Correct all instances of mixMessage to mxdMessage.
2002-12-23 02:05:30 +00:00
Lionel Ulmer
f5e1e3beba
Have the 'Lock' warning a bit clearer.
2002-12-23 02:04:12 +00:00
Lionel Ulmer
f876bf6f67
Report that we do not support compressed texture yet.
2002-12-23 02:03:57 +00:00
Lionel Ulmer
c6f5baac23
- fix returning of capabilities in FindDevice
...
- fill properly some caps according to what OpenGL can do
2002-12-23 02:03:38 +00:00
Marcus Meissner
ef2f1b6ec5
VariantChangeTypeEx for VT_ARRAY | type style variants.
2002-12-23 02:03:10 +00:00
Marcus Meissner
7c290abd85
Fixed VarBstrCmp/Cat .spec entries.
...
Started regression test for SafeArray functions.
Fixed SafeArrayAllocDescriptor (check bounds, set cDims).
Fixed VARTYPE_SIZE array entries so it matches native.
2002-12-23 02:02:49 +00:00
Duane Clark
3d2e380244
Report mode padding tweaks.
...
Fix to LISTVIEW_GetSubItemRect.
2002-12-23 02:02:06 +00:00
Alexandre Julliard
3c25c8e933
Get rid of ole.h.
2002-12-23 01:46:34 +00:00
Alexandre Julliard
d2c034a8dc
Removed some remaining references to wine/obj_base.h.
2002-12-23 01:39:35 +00:00
Jason Edmeades
13ee7cd154
Query opengl to ensure it supports multitexture, and honour the number
...
of supported texture units. Especially important for NVidia drivers
which only support 2 texture units.
2002-12-23 01:34:59 +00:00
Lionel Ulmer
4feb257eed
Fix Direct3D2 => Direct3D3 thunk for FindDevice.
2002-12-23 01:34:15 +00:00
Alexandre Julliard
7ea8a0b9be
Handle unknown format chars correctly (spotted by György 'Nog'
...
Jeney) and added test for it.
Removed unneeded _L_ macro.
2002-12-20 00:35:41 +00:00