Commit Graph

114 Commits

Author SHA1 Message Date
Marcus Meissner 867c436a48 Merged _all_ lpClipper into common_surface.
Add NULL ptr check to SetClipper.
Some more debug output.
1999-12-05 23:07:23 +00:00
Marcus Meissner 8b7c1906a7 Moved lpClipper into common_directdrawsurface struct
Release old clipper on new set
1999-12-05 02:19:56 +00:00
Lionel Ulmer ba02d1d7d5 First support of DGA 2.0 for DirectDraw. 1999-12-04 04:22:04 +00:00
Peter Hunnisett 6db0502993 Improved stubs for the ddraw clipper routines. 1999-12-04 03:55:58 +00:00
Niels Kristian Bech Jensen 1d5bc469cc Removed extra #include statements. 1999-11-21 02:14:36 +00:00
Eric Pouech be62502611 Fixed a crash in IDirectDrawSurface:BltFast. 1999-11-21 00:51:29 +00:00
Ove Kaaven 7da242dbd5 DirectX-XShm now waits for the X server to finish the previous frame
before sending another frame down its pipe, avoiding the X server
overload and resulting slowness that used to be.
1999-11-07 22:44:06 +00:00
Ivan de Saedeleer b81e96eb2a Fail when LPRECT contains negative values. 1999-10-31 21:32:42 +00:00
Francois Gouget 01c9ac401f Generalized the use of the new ICOM_VFIELD and ICOM_VTBL macros. 1999-10-31 01:59:23 +00:00
Patrik Stridvall 96336324cf - Added missing configuration #if:s and #includes:s.
- Minor configuration related changes.
1999-10-24 22:13:47 +00:00
Ove Kaaven 1d4bccc691 Fixed some anonymous union accesses. 1999-10-23 18:52:17 +00:00
Jim Aston e0f604a3cd Added another anonymous union using the DUMMYUNIONNAME style. 1999-10-23 16:55:28 +00:00
Marcus Meissner 2b31a87b5d Use 1 macro for rgbbitdepth -> byte determination.
xshm/image creation now uses 1/8 of the space for every image.
1999-10-13 12:13:35 +00:00
Peter Hunnisett 89391af7e9 - Changed return code for failure on *_DllGetClassObject to
CLASS_E_CLASSNOTAVAILABLE from E_NOTAVAILABLE as documented.
- Replaced memcmps with equivalent IsEqualCLSID or IsEqualGUID macros.
- Changed "return 0;" with S_OK or DS_OK as appropriate.
1999-09-28 16:23:17 +00:00
Alexandre Julliard 3d06d20bab Moved all signal support to a new platform-specific file.
Make use of the per-thread signal stack (Juergen Lock).
Fixed %fs in signal handler for non FS_sig case (Ulrich Weigand).
1999-09-27 10:58:45 +00:00
Lionel Ulmer 5b68233d57 - fixed the creation of back-buffers in DGA mode
- added a check on the validity of the Locking rectangle
- fixed the enumeration for DX-6.0
1999-09-11 16:24:28 +00:00
Marcus Meissner af0cff550d When flipping backbuffer -> frontbuffer, first exchange surfaces, then
copy XImage, since the palette might only be defined in the frontbuffer.
1999-08-04 14:26:50 +00:00
Patrik Stridvall 0e38aa7fda Various ANSI C compability fixes. 1999-07-31 17:34:43 +00:00
Patrik Stridvall 26ffb3cd76 Fixed/added missing/wrong function prototypes and made internal
functions static.
1999-07-31 14:41:43 +00:00
Lionel Ulmer 2bce6fea7e - Added a new option 'noxshm'
- Added a 16bpp -> 32 bpp conversion function
1999-07-23 19:19:56 +00:00
Marcus Meissner 2637ebc2bd Fixed DirectDrawSurface::Flip, do not change flags, exchange the low
level physical surfaces (verified for XLIB with WC Prophecy).
1999-07-12 13:37:29 +00:00
Patrik Stridvall 2d0bb2a78c Started on an implementation of Win64 for use on 64 bit platforms. 1999-07-04 15:56:03 +00:00
Patrik Stridvall d96e1f133e Moved code to the X11 driver. 1999-07-04 13:31:03 +00:00
Marcus Meissner f48db82876 Implemented chains of surfaces. This allows an unlimited number
of backbuffers, and other attached surfaces (zbuffers, alpha buffers,
whatever).
1999-07-03 11:57:29 +00:00
Alexandre Julliard 61fece0590 Converted to the new debug interface, using script written by Patrik
Stridvall.
1999-06-26 19:09:08 +00:00
Patrik Stridvall 1ed4ecffa8 ANSI C fixes.
Removed warnings.
Made the include files self-sufficient.
Some Solaris fixes.
1999-06-26 14:58:24 +00:00
Eric Pouech 2e4c905755 Fixed error handling in DGA_IDirectDraw2Impl_GetCaps(). 1999-06-22 19:04:44 +00:00
Alexandre Julliard 1eeed68514 Moved signal handling to exception.c, generate exceptions on signals.
Added hook for debugger in exception handling (temporary).
1999-06-18 18:21:24 +00:00
Marcus Meissner e1f81a6814 Added generic pixel converter for 8->24. 1999-06-12 08:16:40 +00:00
Marcus Meissner 8c7266009c Remove DIABLO_HACK (does not work anymore), add 1 FIXME, fix GetCaps()
with caps1==NULL.
1999-06-12 06:48:08 +00:00
Marcus Meissner 4ebd9d85aa Speedup enhancement for the 8->16 and 8->32 copy loop hotspots,
using a faster generic routine and some inline assembly for i386
(cleanups by Ove).
1999-06-05 08:45:32 +00:00
Lionel Ulmer 34d6c9f7fb - better debug output for surface creation
- added (experimental) DIBSection implementation of GetDC / ReleaseDC
1999-05-29 11:00:27 +00:00
Lionel Ulmer 37b200627a - added some more debug output
- corrected a slight bug in DGA DirectDraw creation
1999-05-22 19:22:26 +00:00
Kevin Holbrook 7894c2212b Should compare to X11 constant "None" since a colormap is an X
Resource ID and not a pointer.
1999-05-22 18:46:51 +00:00
Paul Quinn 2305f3c06d Microsoft com vtable compatibility workaround for g++. Basically adds
an optional 8 bytes padding to COM objects where the RTTI would be.
1999-05-22 11:41:38 +00:00
Marcus Meissner 66f2aac4e3 Xlib_IDirectDrawSurface4Impl_Flip should show 'flipto' surface, not
previous one. (reported by Ove)
1999-05-17 14:52:05 +00:00
Lionel Ulmer 3899c021a1 Check if in depth-conversion mode before returning an error message
in IDirectDrawPaletteImpl_GetEntries.
1999-05-14 08:07:56 +00:00
Lionel Ulmer ad7258517e Replaced all the Mesa specific code by GLX code. Should work now on
any OpenGL implementation.
1999-05-13 18:53:05 +00:00
Patrik Stridvall 896889f317 ANSI C fixes. 1999-05-08 12:50:36 +00:00
Patrik Stridvall a9a671d7ca Fixed ANSI compabillity. 1999-04-25 19:01:52 +00:00
Patrik Stridvall b4b9fae671 New debug scheme with explicit debug channels declaration. 1999-04-19 14:56:29 +00:00
Lionel Ulmer 251ed43b98 Changed 'GetDisplayMode' to return the mode previously set by
'SetDisplayMode' (and not the current monitor mode).
1999-04-18 12:03:02 +00:00
Brian Gerst 8d4f85071d - Removed all floating point math.
- Implemented stretching in X and Y directions for 8, 16, and 32 bit color.
- Implemented source and dest color-keying for 8, 16, and 32 bit color.
- Implemented some trivial raster operations.
- Minimized inner loops for maximum speed.
- Use memcpy whenever possible.
1999-04-18 09:31:50 +00:00
Lionel Ulmer 81c7544184 - clean-up of texture 'loading'
- added SetColorKey callback for already loaded textures
1999-04-06 07:10:48 +00:00
Lionel Ulmer 4ddedb8131 Added DllClassFactory to DirectDraw. 1999-04-02 10:26:32 +00:00
Lionel Ulmer 31ce102fe6 Implement the EnumAttachedSurface method. 1999-04-01 11:49:29 +00:00
Lionel Ulmer e8ceac986b Fixed QueryInterface functions for IDirect3D 1 and 2. 1999-03-28 15:15:45 +00:00
Lionel Ulmer 2e23da4ad5 Added initialisation of the pixmap_depth field in
Xlib_DirectDrawCreate.
1999-03-28 09:18:22 +00:00
Francois Gouget 022d372709 Adapted to the interface/implementation separation.
Now uses ICOM_THIS to access the implementation structures.
Replaced 'this' with 'This' for ICOM_THIS.
Direct access to the virtual table has been eliminated too.
1999-03-27 16:56:13 +00:00
Marcus Meissner 6b9dd2e098 Lots of warning fixed, one missing WINAPI in ddraw.c added. 1999-03-18 17:39:57 +00:00