Matthew Mastracci
11959ba310
Correctly lock and unlock surface for a single-surface Blt() and
...
BltFast() call.
2005-04-11 14:26:00 +00:00
Jakob Eriksson
9ed61de9a2
Get rid of HeapAlloc casts.
2005-03-24 21:01:35 +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
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
Christian Costa
e64aae00e0
Handle more properly versions for Direct3D and Direct3DDevice
...
objects.
2005-02-14 11:09:46 +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
Mike McCormack
4a0f999859
Use CreateEventW in preference to CreateEventA for unnamed events.
2005-01-07 15:40:09 +00:00
Christian Costa
65a4775b30
Handle correctly DDSD_LINEARSIZE flag for FOURCC textures.
2005-01-03 14:41:08 +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
Alexandre Julliard
ebe3c529b1
Janitorial: C booleans must not be compared against TRUE.
2004-12-09 14:07:59 +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
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
Alexandre Julliard
f714b39762
Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
...
macro.
2004-08-23 19:39:48 +00:00
Alexandre Julliard
48c4bb3c31
Get rid of the non-standard ICOM_VTABLE macro.
2004-08-12 23:00:51 +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
eac96b5606
Added native and emulated S3TC support.
2004-07-30 18:54:32 +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
Lionel Ulmer
d069312de6
Add the possibility to save a snapshot of the backbuffer at
...
flip-time.
2004-04-12 22:07:33 +00:00
Elias Ross
56aca378c1
Added 24-bit color key support in DIB_DirectDrawSurface_BltFast.
2004-03-16 19:41:50 +00:00
Dmitry Timoshkov
21fc3c8067
CreateDIBSection takes a const pointer to BITMAPINFO.
2004-03-12 19:46:12 +00:00
Alexandre Julliard
05df86a38f
Moved more GDI definitions to gdi_private.h.
...
Get rid of bitmap.h and palette.h.
2004-03-04 20:41:12 +00:00
Dmitry Timoshkov
cc535b7cce
There is no point in specifying both MEM_RESERVE and MEM_COMMIT for
...
VirtualAlloc.
2004-02-11 23:57:36 +00:00
Lionel Ulmer
2b8281a827
Fix palette deletion issue seen in DungeonKeeper.
2004-01-30 22:58:03 +00:00
Lionel Ulmer
b6ddd8cadb
Better color-keying support.
2003-11-11 00:31:16 +00:00
Lionel Ulmer
8c1c276b5b
- add ZBuffer write support
...
- some TRACEing fixes
2003-09-15 20:00:03 +00:00
Alexandre Julliard
cf52644a1c
Removed the A/W constants for builtin cursors, icons and resource
...
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Lionel Ulmer
2f34e74ede
Some broken games do not put the TEXTURE flags in the surface caps.
2003-07-15 20:45:01 +00:00
Lionel Ulmer
51df9314d8
- fix FPS computation
...
- some TRACEing fixes
- optimize BltFast locking rectangles
2003-07-08 21:10:01 +00:00
Lionel Ulmer
3dfdfbfa6f
- some TRACEing fixes
...
- faster Blt to the framebuffer using texture engine
2003-06-23 03:34:34 +00:00
Lionel Ulmer
c203d68e98
- fix some regressions
...
- GetDC does not lock in ReadOnly mode as it leads to problems with
some D3D optimizations
- added a fast Back => Front / Front => Back Blt fast path
2003-06-16 19:41:34 +00:00
Lionel Ulmer
8944b25ead
Be more stringent in the 'Lock' invalid RECT check.
2003-06-13 16:31:41 +00:00
Lionel Ulmer
4aba282bb8
- proper (tested on Win2K) reference counting for Direct3D object
...
- fix one case of reference counting on textures
- fix stupid bug in texture upload code
- yet another texture enumeration reordering
2003-06-04 23:31:39 +00:00
Alexandre Julliard
24d0a8394f
Authors: Mike McCormack <mike@codeweavers.com>, Lionel Ulmer <lionel.ulmer@free.fr>
...
Make DDraw not linked 'statically' to OpenGL.
2003-06-04 20:13:21 +00:00
Lionel Ulmer
a4d733ae5a
- remove fogging too when doing the flush of the frame buffer
...
- handle dest rect in the Blt DEPTH_FILL case
- fix QueryInterface on the D3D Device
2003-05-22 03:38:22 +00:00
Christian Costa
1392c77d7e
Remove all openGL calls in execute buffers and use the Direct3D7 APIs.
...
Enable retrieving the render target surface of a device through its
QueryInterface method.
Avoid lights updating when a viewport and a device have not been
associated to them.
Clear the Z buffer only when we're asked to by Checking D3DBTL_FILL
flag.
2003-05-20 17:49:40 +00:00
Lionel Ulmer
97f216c93c
- some tracing fixes
...
- flush the right buffer to the screen
2003-05-20 04:27:04 +00:00
Lionel Ulmer
5d62e55d3d
Better handling of pitch set to 0.
2003-05-19 21:38:58 +00:00
Tony Lambregts
2e24a148bf
Replace DPRINTF with TRACE.
2003-03-15 00:12:42 +00:00
Christian Costa
93a943eecc
Add support for 24 bpp to _Blt_ColorFill.
...
Fix endianness issue in DIB_DirectDrawSurface_Blt.
2003-02-11 21:58:07 +00:00
Dan Kegel
0fd521fee3
Change RECT to use LONG to match win32 standard headers and fix format
...
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Dimitrie O. Paun
297f3d898d
Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them.
2003-01-07 20:36:20 +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
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
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