summaryrefslogtreecommitdiff
path: root/miext/cw
AgeCommit message (Collapse)AuthorFilesLines
2005-07-02Continuing Makefile cleanup; add DIX_CFLAGS and XORG_CFLAGS everywhere.Daniel Stone1-0/+2
2005-07-01Adding initial build system.Daniel Stone1-0/+6
2004-12-04Encoding of numerous files changed to UTF-8Markus Kuhn4-4/+4
2004-08-27Bug #1101: Fix PaintWindow in the pixmap case when the window's origin isEric Anholt1-25/+23
not at the backing pixmap's origin. Resulted in incorrect rendering in at least aisleriot, fluxbox, and KDE apps, and probably many more. While here, move the ParentRelative loop above the drawable grab -- may improve correctness with ParentRelative background origins as well. Note that the border code doesn't handle ParentRelative yet.
2004-08-26Bug #1138: Wrap funcs in CW's GC ops as well. While this is unnecessaryEric Anholt2-1/+6
according to the rules as I understand them (bug #1045), not everybody follows the rules. GC funcs were being called on the same GC from within GC ops, and the cwValidateGC caused a loop in the funcs chain that resulted in a crash, notably in cwPolylines.
2004-08-18Fix CopyArea for non-redir dst, redir src (Bug #1105, Eric Anholt).Kevin E Martin2-173/+26
2004-08-15Clip destination instead of source. Should be the same, but it looks nicerKeith Packard1-52/+59
to me. Clean up transition between cheap and expensive GC wrappers by using the prologue and epilogue macros. Before, the GC would be left unvalidated sometimes which would cause all kinds of entertaining bugs against a DDX which cares (XAA).
2004-08-15Remove debugging code which did a full tree walk on every window operationKeith Packard1-5/+4
Eliminate needless (and, it turns out, dangerous) call to ChangeGC on DestroyGCPrivate. in cwSetWindowPixmap, check if the pixmap is the screen pixmap and disable the wrapper by setting the private to NULL.
2004-08-15Copy bits from parent window when allocating pixmaps so that Background ==Keith Packard1-1/+15
None works. Copy filter to backing picture during validation. Mark picture serialNumber when setting Filter or Transform so Validate occurs. Initialize xf86Screens[i]->pScreen to NULL so that RADEON driver doesn't crash during server reset using old pScreen.
2004-08-15Redraw window borders when switching window pixmaps aroundKeith Packard3-14/+49
Make cw "own" the window pixmaps by wrapping GetWindowPixmap/SetWindowPixmap.
2004-08-14Fix offsets again. Really, it works this time. Promise.Keith Packard1-11/+12
2004-08-14Fix offsets, do whole region at once by using GC clippingKeith Packard1-15/+35
2004-08-14Fix clip list computation and setting to ignore clip changes to "real"Keith Packard3-70/+109
GC/Picture and track serial numbers correctly when copying pCompositeClip down.
2004-08-14Wrap CopyWindow in cw, which fixes scrolling in many apps.Eric Anholt2-0/+44
2004-08-14Use XLIB_SKIP_ARGB_VISUALS environment variable to disable all depth 32Keith Packard2-22/+32
visuals. Necessary to keep Flash from crashing. Must call ValidateGC/ValidatePicture on "real" GC/Picture to ensure pCompositeClip is set correctly. Need to take the composite clip from the "real" GC/Picture and turn it into the clientClip for the backing version. Adjust pixmap screen origin to account for drawable->x/y Change debugging output a bit (disabled by default)
2004-08-12Fix various cw issues, including a couple reported by deronj:Eric Anholt4-48/+41
- Fix wrapping of GC ops/funcs according to policy described in bug #1045. - Remove ValidateGC/ValidatePictures on the redirected drawables/pictures -- it's not needed, and DDXs shouldn't be seeing redirected drawables in render or GC ops/funcs when cw is running. - Mark all GC/Picture state as dirty when moving from redirected to non-redirected, since it hadn't been passed down in Change* or Validate* while redirected. - Remove CreatePicture wrapper that didn't do anything. - Comment on why AddTraps wrapper isn't needed.
2004-08-12Paint to parent window instead of parent window's pixmap (helps for serversKeith Packard1-2/+2
that don't have a pixmap for the root) Fix offsets for render drawing.
2004-08-07Clean up cw initialization, make sure wrappers re-wrap on exit.Keith Packard1-19/+11
2004-08-06Fix missing ';' in cw.c and unwrap the render wrapper properly.Eric Anholt3-5/+24
2004-08-05- Add a new Render function, CopyPicture, which will update a picture withEric Anholt3-114/+116
the flagged bits from a source picture. Approved in principle by keithp. - Use CopyPicture and SetTransform to update most of the backing picture's state in the composite wrapper. Filters are still missing. - Don't allocate a picture private, now that we calculate clipping properly and don't need the serialNumber or stateChanges. - Use the format of the source pixmap rather than generating the format from the window's visual. - Wrap the rest of the Render primitives that were stubbed out before.
2004-08-04- Always validate the backing GC in cwValidateGC, not just when the clipEric Anholt1-20/+18
list changes. - Use FillTiled instead of FillSolid for painting tiled border/background pixmaps, and don't needlessly change the scratch GC's defaults. - Use the preferred dixChangeGC instead of DoChangeGC. - Simplify a silly loop and clean up a couple of comments.
2004-08-03Major improvements to Composite wrapper. Several issues remain, but it nowEric Anholt4-209/+274
appears stable in limited testing. - Allocate the picture private, avoiding segfault. - Wrap PaintWindow to draw the background/border to the backing pixmap (based on Deron Johnson's comptran.c). - Set the x_off/y_off returns to translate coordinates properly. - Don't bother allocating temporary areas for the modified coordinates. Layers above are responsible for handling lower layers changing the arguments, so cw doesn't have to worry about it. mibstore.c has to do the allocation because it calls down twice (front buffer and backing store). (Suggested by keithp) - Handle the mode argument to PolyPoint, Polylines, and FillPolygon. - Remove some dead elements in the cw privates. - Kill a prototype warning in compinit.c by adding the cw.h header.
2004-07-31Integrate COMPOSITEWRAP branch including composite wrapper. This code stillEric Anholt4-0/+1718
has several issues, including: - CopyWindow and PaintWindow wrappers missing (will be done soon) - Some segfaults seen in the Render wrappers. - Xprt server build breaks with Composite. - DDXs must be recompiled for Composite due to VisualRec size change. - Composite bugs pointed out by Deron Johnson in email. Also, reorder XFixes initialization according to comments by Keith which are also in xserver CVS.