xserver/fb
Søren Sandmann Pedersen c6cb70be1e Fix trapezoid and triangle rendering to windows
For fbAdd{Traps,Triangles}() and fbRasterizeTrapezoid() this is just a
matter of adding the image offsets to the trap offsets.

For fbShapes, the story is more complicated:

The recently added pixman API did not allow offsetting
trapezoids. Instead, it would use x_dst and y_dst in such a way that
the effect was to only offset the source image.

In pixman 0.21.8, this API has changed such that all the traps are
conceptually rendered to an infinitely big image, and the source and
destination coordinates are then aligned with (0, 0) of that
image. This means offsetting dst_x and dst_y will now offset the
entire drawing, which is similar to how other composite functions
work.

This patch then changes fbComposite{Triangles,Traps} such that the
source image is aligned with the shapes, and the destination
coordinates offset according to drawable->{x, y}.

Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Soren Sandmann <ssp@redhat.com>
2011-04-22 22:11:20 -04:00
..
Makefile.am fb: Remove hw/xfree86/ from includes 2011-02-08 12:41:13 -05:00
fb.h fb: drop comments around 24-bit support. 2011-04-01 10:32:27 +10:00
fb24_32.c Revert "dix: Remove usage_hint from pixmaps, store it in ->drawable.class" 2011-03-17 23:48:52 -07:00
fb24_32.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
fballpriv.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbarc.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbbits.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbbits.h fb: make isClipped always reject negative coordinates (bug 11503) 2010-08-20 10:01:48 -07:00
fbblt.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbbltone.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbcmap_mi.c Sun's copyrights now belong to Oracle 2010-12-07 11:10:35 -08:00
fbcopy.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbfill.c Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fbfillrect.c Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fbfillsp.c Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fbgc.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbgetsp.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbglyph.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbimage.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbline.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fboverlay.c fb: fix memory leak in fbOverlayFinishScreenInit 2011-04-04 15:41:13 +03:00
fboverlay.h fb: move some code to mi 2009-02-06 18:42:39 +01:00
fbpict.c Remove geometry arguments from miSourceValidate() 2011-03-14 13:57:42 -04:00
fbpict.h Move miTriangles to fb as fbTriangles() 2011-02-26 13:58:54 -05:00
fbpixmap.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbpoint.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbpush.c Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fbrop.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
fbscreen.c mi: fix memory leak in miInitVisuals 2011-04-04 15:41:13 +03:00
fbseg.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbsetsp.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbsolid.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbstipple.c fb: drop defines that aren't used/necessary anymore. 2011-04-01 10:28:06 +10:00
fbtile.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
fbtrap.c Fix trapezoid and triangle rendering to windows 2011-04-22 22:11:20 -04:00
fbutil.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
fbwindow.c fb: cleanup fbChangeWindowAttributes 2011-04-01 11:02:17 +10:00
wfbrename.h fb: Delete a bunch more left-overs 2010-11-02 03:36:45 -04:00