Lionel Ulmer
6fb7ed8fa7
Added 'blt' and 'bltfast' override functions.
2003-01-02 19:51: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
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
Lionel Ulmer
f5e1e3beba
Have the 'Lock' warning a bit clearer.
2002-12-23 02:04:12 +00:00
Lionel Ulmer
8377b9d49b
- fix Twist demo
...
- some clean-ups / traces
2002-12-16 22:48:20 +00:00
Lionel Ulmer
91c6f817b9
- rework how texturing is done in the D3D driver
...
- added the generic path for DrawPrimitive API in D3D 3 / 7
2002-12-15 01:17:59 +00:00
Francois Gouget
d2667a4ce3
Removed unnecessary HANDLE typecasts.
2002-12-02 18:10:57 +00:00
Lionel Ulmer
4941a3aff2
- fix texture snooping (plus adds snoop for 1555 format)
...
- add texture memory usage tracking
2002-11-27 21:38:28 +00:00
Lionel Ulmer
dd738eab07
- Prevent the backbuffer to also have the frontbuffer flag set.
...
- Log the Locking flags.
- Print symbolic name (if any) of zero values for bit fields (thanks
Andi).
2002-11-25 02:42:04 +00:00
Lionel Ulmer
43c3dc4d33
- Clean up all the D3D COM handling (but the underlaying code is still
...
as ugly as before).
- Handle properly (ie as on real Windows) negative values in
rectangles during blitting.
2002-11-21 21:04:16 +00:00
Lionel Ulmer
b103f7b679
Proper logging of DDSCAPS / DDSCAPS2 structures.
2002-11-11 22:23:10 +00:00
Marko Kreen
971f3f3518
Clip bottom coordinates.
2002-11-11 20:26:33 +00:00
Matthew Bloch
c9df52c381
Vtable fixes.
2002-11-06 19:53:45 +00:00
Lionel Ulmer
5ecd8903e2
- only compare the first WORD in the DDSCAPS2 structure if no DX7
...
- add some TRACEs
2002-11-04 22:34:11 +00:00
Alexandre Julliard
b34fb35b31
Fixed warnings caused by conversion to -DSTRICT.
2002-10-18 23:48:57 +00:00
Christian Costa
ce35cc03a8
Main_DirectDrawSurface_QueryInterface: enable creation of a
...
IDirect3DTexture2 from a surface.
2002-10-10 23:27:32 +00:00
Lionel Ulmer
1c0a8ac4c0
Added some TRACEs to the ddraw code.
2002-10-10 22:47:02 +00:00
Alexandre Julliard
e969027104
Fixed warnings.
2002-10-02 01:34:17 +00:00
Christian Costa
74d0d4c562
Enable creation of our OpenGL Direct3D device from a surface used as
...
rendering target.
Enable creation of a texture from a surface.
2002-09-26 03:20:07 +00:00
Gregg Mattinson
8c9bdcc9e1
Fixes for Sparc build.
2002-08-07 01:18:41 +00:00
Lionel Ulmer
00b088bc25
Support negative values in RECTs during Blts.
2002-08-03 19:11:55 +00:00
Lionel Ulmer
262cbcdb09
Be less strict on parameter checking in the SetSurfaceDesc function.
2002-08-02 19:10:16 +00:00
Ove Kaaven
1af798920c
Wait for the asynchronous update thread to complete if the app
...
requests it. Fixed blit offseting issues in windowed mode.
2002-07-20 20:01:57 +00:00
Gregg Mattinson
8a191ff5b8
Avoid structures or arrays of size 0.
2002-07-19 03:18:05 +00:00
Tony Lambregts
2c5a41b027
Added support DDBLT_DDFX flag in DirectDrawSurface_Blt.
2002-07-16 01:42:47 +00:00
Lionel Ulmer
b6051dec93
- DDRAW_SYSTEMMEMORY is handled like OFFSCREENPLAIN for now
...
- added more logging
2002-07-16 01:16:14 +00:00
Alexandre Julliard
a80a814234
Fixed corruption when copying to the same surface (with the help of
...
Tony Lambregts and Lionel Ulmer).
2002-07-10 23:10:54 +00:00
Ove Kaaven
1d8f92c88c
Removed the flags fields of IDirectDrawPaletteImpl, as we should use
...
the dwFlags field of DDRAWI_DDRAWPALETTE_GBL structure instead.
2002-07-10 03:05:43 +00:00
Ove Kaaven
ea20614e39
Handle WM_SYNCPAINT with DefWindowProc.
2002-07-10 03:04:58 +00:00
Gregg Mattinson
bac71315d2
Removed non-static structure initializers.
2002-07-03 21:06:58 +00:00
Gregg Mattinson
2e38a17021
Void functions can't return a value, even if it is the return value
...
from another void function.
2002-07-03 01:20:07 +00:00
Jukka Heinonen
9859606ec8
Disable OWN_WINDOW as it no longer works.
2002-06-28 23:26:57 +00:00
Tony Lambregts
fede234ed0
Added support for DDBLT_KEYSRCOVERRIDE/DDBLT_KEYDESTOVERRIDE.
2002-06-28 17:32:25 +00:00
Vincent Béron
9a62491660
Removed trailing whitespace.
2002-05-31 23:06:46 +00:00
Vincent Béron
6a5ba8fba2
Fixed some more missing \n in traces.
2002-05-29 19:09:54 +00:00
Alexandre Julliard
85cacd8fe9
Removed call to DIB_GetDIBWidthBytes.
2002-03-28 22:25:02 +00:00
Alexandre Julliard
0799c1a780
Added LGPL standard comment, and copyright notices where necessary.
...
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Lionel Ulmer
e88edac600
Fix crash in the X11 HAL when setting a NULL palette to a surface.
2002-02-26 00:36:21 +00:00
Andreas Mohr
a69c039c80
Documentation update.
2001-12-26 20:40:47 +00:00
Jukka Heinonen
2547121843
When a surface becomes primary surface, mark the whole surface damaged.
2001-10-17 17:45:53 +00:00
Marcus Meissner
4d2f173ce3
Added dwFlags to lock_update private functions so we can pass
...
WRITEONLY/READONLY.
Added those flags to the internal Lock() calls.
Only copy the surface from screen to surface if not writeonly.
Restrict blitting between display window and surface to the
locked/unlocked rectangle and the clipwindow section.
Added defines for DDHAL_UNLOCKDATA/DDHAL_LOCKDATA, added calls to HAL
implementation.
2001-09-10 23:12:16 +00:00
Alexandre Julliard
e994d5036e
Added Interlocked*Pointer functions.
...
Fixed InterlockedCompareExchange prototype.
2001-08-09 21:21:13 +00:00
Alexandre Julliard
502d83b1d2
Fixed a few problems with DCX_* flags handling.
2001-07-31 00:14:06 +00:00
Dmitry Timoshkov
822429ad55
Fix out of the source tree build (again).
2001-07-19 19:09:33 +00:00
Patrik Stridvall
33929be46f
- Made sure that the files that contains the declarations
...
of implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.
2001-07-18 21:04:23 +00:00
Alexandre Julliard
b735928ba1
Removed a few obsolete files.
2001-04-18 17:41:07 +00:00
Ove Kaaven
c14bed35f6
Fix DGA so it works properly again.
2001-04-18 17:40:43 +00:00
Ove Kaaven
71c6984901
Implemented DirectDraw's Hardware Abstraction Layer (HAL) interface.
...
Disabled DirectDraw's old XVidMode and DGA2 drivers, it now depends on the
display driver (x11drv) HAL implementations of these features.
2001-04-17 17:48:19 +00:00
Ove Kaaven
793bf04e24
Removed the obsolete DIBTexture surface class.
2001-04-17 17:36:44 +00:00
Ove Kaaven
fe01f0e7d0
Fill in some more HAL fields. Flip some of them when appropriate.
...
Allow SetSurfaceDesc to change client memory surface address.
Propagate DIB color table updates to backbuffers too (thanks to
Stephen Clouse).
2001-04-17 17:36:28 +00:00
Ove Kaaven
2043c42cef
Implemented gamma control on the DirectDraw primary window.
...
Ensured that the primary window is created before the constructor returns.
Flag the primary window as transparent so mouse clicks pass through it.
Put the primary window handle into a reserved field for x11drv HAL use.
2001-04-17 17:34:11 +00:00
Ove Kaaven
e37b1d31a8
Implemented the IDirectDrawGammaControl interface.
2001-04-16 19:35:18 +00:00
Ove Kaaven
01b9436018
Added ddraw HAL and gamma ramp stuff to implementation structures.
...
Added a parameter and return value to flip_data and flip_update.
2001-04-16 19:06:13 +00:00
Marcus Meissner
c5d2f5efeb
Handle differently sized structs by using their dwSize parameters.
2001-02-12 03:43:53 +00:00
Marcus Meissner
15a525973b
- Siedler3 appears to have rather limited buffers for device/description
...
strings and crashes with those long strings. Shortened those strings.
- Also driver needs to be "display" for display devices (some other
programs rely on that info I seem to remember).
- Fixed DSurface::GetSurfaceDesc to not just blindly copy a
DDSURFACEDESC2 struct over a smaller DDSURFACEDESC one.
2001-01-28 23:15:17 +00:00
James Juran
f4d5fefb0a
Add <string.h> to files that needed it.
2001-01-26 20:43:40 +00:00
Patrik Stridvall
d5f824b482
Fixed some issues found by winapi_check.
2001-01-25 22:23:08 +00:00
Gavriel State
ba3c18df69
Warning fixes.
2001-01-12 23:18:22 +00:00
Gerald Pfeifer
ab75b89a55
Fixed some incorrect format strings.
2001-01-09 21:50:01 +00:00
Alexandre Julliard
d6c0f9f784
Authors: Andrew Lewycky <andrew@transgaming.com>, Gavriel State <gav@transgaming.com>, Ove Kaaven <ovek@transgaming.com>
...
Major DirectDraw restructure/reimplementation, using an improved component
object model hierarchy. The implementation currently supports:
- DirectDraw over GDI/USER in a window (using DIBsections and
asynchronous updates)
- XVidMode
- XF86DGA2
- All DirectDraw interfaces from versions 1 to 7 (at least in theory)
- Hooks for Direct3D interfaces
2001-01-04 22:44:55 +00:00
Marcus Meissner
a337437706
IDirectDrawSurface::Blt::SRCCOPY is the default ROP operation, do not
...
throw error.
2000-12-22 01:39:22 +00:00
Marcus Meissner
e38b41911f
Truncate dest blit rectangle down to surface size.
2000-11-27 23:06:36 +00:00
Andreas Mohr
bb84359c41
Avoid division by zero.
2000-11-04 02:55:08 +00:00
Lionel Ulmer
85f4a49c2d
Support non-buffered overlays.
2000-10-12 23:09:40 +00:00
Lionel Ulmer
fc67be9a01
Added support for DirectDraw overlays using the XVideo extension.
2000-09-26 00:38:03 +00:00
Gerald Pfeifer
54449ce348
Remove unused local variable in DGA_IDirectDrawSurface4Impl_SetPalette().
2000-09-18 01:41:26 +00:00
Lionel Ulmer
5e14b07961
Fixed DGA / DGA 2 palette creation.
2000-09-12 23:35:17 +00:00
Alexandre Julliard
94074bc224
Fixed non-OpenGL compile.
2000-08-30 01:51:21 +00:00
Peter Hunnisett
5b6bf34067
Newbie friendly error message for 3D creation failure.
2000-08-29 23:55:26 +00:00
Lionel Ulmer
6e408c4f16
- added ARGB 1555 format
...
- fixed refcount problem for Add/DeleteAttachedSurface
2000-08-28 19:31:18 +00:00
James Abbatiello
ba0a533669
Don't crash when calling DirectDrawSurface::EnumAttachedSurfaces on a
...
surface with no attached surfaces.
2000-08-22 20:38:00 +00:00
Alexandre Julliard
2a2321bbca
Authors: Alexandre Julliard <julliard@codeweavers.com> (for Corel), Albert den Haan <albertd@corel.com>
...
Added syslevel locking for GDI operations.
Propagate the changes through the graphics code.
2000-08-19 21:38:55 +00:00
Marcus Meissner
77e3cd8cd0
No longer crash when running with DirectDraw with a DDClipper in
...
-desktop mode.
2000-07-29 00:01:30 +00:00
Marcus Meissner
bfae5c8382
IDirectDraw,IDirectDraw2,IDirectDraw4 fixed up in regard to COM usage.
2000-07-23 13:39:52 +00:00
Lionel Ulmer
a8cc5f543e
- fix Direct3D support and a lot of warnings
...
- add support for DDraw in a window (not optimized yet)
- cleans up OpenGL extensions handling for D3D
2000-07-16 14:40:35 +00:00
Marcus Meissner
5d760b1ca8
Check for NULL flipchain and just return the current surface if it
...
happens.
2000-07-11 22:05:21 +00:00
Marcus Meissner
62eedafb4a
Removed another bad assert and two no longer needed ones.
2000-07-08 11:43:34 +00:00
Marcus Meissner
cbe749f16a
Fixed two asserts in Blt().
2000-06-25 12:50:54 +00:00
Marcus Meissner
968580c136
Use correct bpp for the X side of the surface XImages.
...
Cleaned up Xlib_Surface_Release so it is a bit more readable.
use VirtualAlloc for conversion-programside buffer to simplify
handling.
2000-06-23 16:52:53 +00:00
Marcus Meissner
653d57a22a
Dump FourCC correctly, print conversion messages, add reference to
...
ddraw in DDSurface::GetDDInterface.
2000-06-23 16:50:24 +00:00
Lionel Ulmer
ef275bbb99
Removed the Release in case of error as we do not AddRef anymore.
2000-06-12 01:18:35 +00:00
Ove Kaaven
70b699a1a1
Call TSXFlush after setting DGA palette, so it updates immediately.
2000-06-10 04:24:41 +00:00
Lionel Ulmer
0761f537ee
Install the colormap only if it was created.
2000-05-30 20:05:05 +00:00
Ove Kaaven
561895a937
Made IDirectDrawSurface::SetPalette set the surface's DIBSection color
...
map to point to the IDirectDrawPalette's own depth conversion color map.
2000-05-18 00:04:10 +00:00
Ove Kaaven
270c9fb109
Improved DIBSection support for IDirectDrawSurface::GetDC.
2000-05-14 22:53:51 +00:00
Lionel Ulmer
bedf40b58b
Added support for OpenGL.
2000-05-12 20:18:14 +00:00
Marcus Meissner
b7ed6df279
Number of surface Lock/Unlocks must NOT match, so do NOT use it for
...
reference counting.
2000-05-09 22:33:12 +00:00
Lionel Ulmer
25b05b1a2f
Remove the assertion when there is no source surface.
2000-05-03 17:43:07 +00:00
Lionel Ulmer
51177f96ba
Added DGA2 driver to DirectDraw.
2000-05-01 14:25:49 +00:00
Marcus Meissner
8903137cd6
Make DirectDraw compile with DGA2 present.
2000-04-13 15:59:22 +00:00
Marcus Meissner
81a84bb387
Free private structure in Xlib_DDS_Release.
2000-04-11 19:37:50 +00:00
Marcus Meissner
01cfbaf46e
Two left over HeapValidate assertions removed.
2000-04-09 18:39:52 +00:00
Marcus Meissner
10ad97c838
Restructured DirectDraw. Split into X11 and DGA driver, and multiple
...
files/dirs for easier maintenance. Cleaned up structs and include
files. Reindented the code. Started the same for Direct3D. Driver
inclusion now done by using configure/Makefile/ELF constructor tricks.
2000-04-09 14:30:50 +00:00