Commit graph

8269 commits

Author SHA1 Message Date
Carl Worth
528c1aceb1 Added XrSurfacePutImage. Fixed missing translation of clip region. 2003-05-28 19:28:53 +00:00
Carl Worth
c988feb05d Changed default matrix to be 3780 user units per 1 meter physical device 2003-05-15 21:16:26 +00:00
Carl Worth
dfc84ef829 Added XrSetTargetImage. Removed _XrGStateSetTargetDrawable, (now implemented as a convenience function in xr.c) 2003-05-14 21:59:42 +00:00
Carl Worth
b3b306dfd9 Added toplevel functions for setting surface matrix, filter. Introduced new XrMatrix object. Fixed to properly hint scaled fonts. 2003-05-14 18:30:57 +00:00
Carl Worth
8f10ce3013 Added XrSetPattern 2003-05-12 09:46:57 +00:00
Carl Worth
078e552da8 XrStroke and XrFill now both go through the same clipping. Cleaned up the three path interpreters (stroke, fill, and bounds), to each be in their own files 2003-05-12 09:24:17 +00:00
Carl Worth
292d7bd9ba Changed XrFormatRGB32 to XrFormatRGB24 2003-05-02 14:07:41 +00:00
Carl Worth
9c814d23d6 Added several query functions. Experimental clip support (still incomplete) 2003-05-01 08:18:25 +00:00
Carl Worth
7b5270441b Fixed memory leak 2003-04-26 09:57:54 +00:00
Carl Worth
c5b28ba63c Fixed libtool versioning 2003-04-25 13:34:00 +00:00
Carl Worth
5a4f65a774 extern "C" stuff to support C++ (Fredrik Höglund) 2003-04-23 07:17:57 +00:00
Carl Worth
e712a21abe Added Makefile.am 2003-04-21 12:46:41 +00:00
Carl Worth
ee738deaf6 Switched to autotools. Dropped XrPush/PopGroup. Supports non-X Xc rendering. 2003-04-17 13:24:29 +00:00
Carl Worth
d084434770 Fixed transformed images to not be 1 pixel too big 2003-02-14 07:22:19 +00:00
Carl Worth
d4ba730ba2 Fixed algebra used by XrPenVerticesNeeded to avoid sqrt() of negative numbers. 2003-02-06 08:06:28 +00:00
Carl Worth
a4b439eb69 Added round caps/joins. Fixed initial cap. Fixed disabling of dashing. 2003-01-28 13:49:57 +00:00
Carl Worth
1507f1c795 Added triangle tessellation. Converted bevel joins from polygons to triangles. 2003-01-28 07:23:54 +00:00
Carl Worth
f93c88efbf Fixed round joins to not fall through to miter case 2003-01-25 11:12:39 +00:00
Carl Worth
341c446ba2 Fixed xrpolygon for multiple sub-polygons 2003-01-24 13:56:30 +00:00
Carl Worth
214662761e Fixed miter limit handling. Added local.def 2003-01-24 13:52:01 +00:00
Carl Worth
cdae3ba615 Fixed holes in self-intersecting splines, (from change to winding rule parameter interface) 2002-12-03 12:37:59 +00:00
Carl Worth
6c8533a2ad Fixes for transformed images 2002-11-11 12:46:17 +00:00
Carl Worth
405598e4e0 Added group support. 2002-11-04 00:24:44 +00:00
Carl Worth
ea0104b2c0 Fix memory leak of image pixmap 2002-11-02 10:24:12 +00:00
Carl Worth
e39a088a29 Partial image support. 2002-11-01 19:45:30 +00:00
Carl Worth
fec91ede9e Moved Xft/fontconfig code up from Xc to Xr. Added XrTextExtents 2002-10-30 21:54:50 +00:00
Carl Worth
f207f1db64 Added basic font support 2002-10-29 17:27:01 +00:00
Carl Worth
f64ebf489b Added XrStatusInvalidRestore. Fixed XrSurface memory leak. 2002-10-28 09:00:10 +00:00
Carl Worth
06ddeffeb7 Moved current point state to XrGState and dropped relative operators from XrPath. This is all in preparation for XrShowText, (which needs access to the current point) 2002-10-26 07:59:31 +00:00
Carl Worth
0b6fd5b4d1 Added XrSetFillRule 2002-10-24 11:27:29 +00:00
Carl Worth
8379c09a5b Fix for paths with multiple polygons disjoint in Y 2002-10-23 18:30:53 +00:00
Carl Worth
f07852454c Added XrConcatMatrix, XrGetStatus. Properly clip color, alpha, and tolerance values from the user. Renamed _XrTransformPointWithoutTranslate to _XrTransformDistance. Added new XrIntStatus type for error codes that are not exported. 2002-10-23 11:58:38 +00:00
Carl Worth
88237e451e Various cleanups, (no functional changes). Changed arguments for XrRel* from x,y to dx,dy. Changed XrError to XrStatus. Added a prefix of '_' to all internal functions 2002-10-16 12:57:00 +00:00
Carl Worth
fe0606c763 Standardized bracing-style and indentation 2002-10-01 04:37:42 +00:00
Carl Worth
cf44ac0f7a Fixed pen when it has more than 2 duplicate vertices. Imposed minimum value on tolerance to avoid infinite recursion. 2002-10-01 04:28:20 +00:00
Carl Worth
c5e37af245 Fixed rounding bug in _ComputeX. Use if statement instead of while loop to increment intersection Y value 2002-09-20 09:43:42 +00:00
Carl Worth
e9255b4688 Fixed intersection test for parallel lines 2002-09-17 14:44:52 +00:00
Carl Worth
a2265c8e1b Added comments describing polygon tessellation algorithm 2002-09-17 14:21:36 +00:00
Carl Worth
d334c8bf8f Cleaned up polygon tessellation code. Fixes all known problems. 2002-09-17 13:38:55 +00:00
Carl Worth
546b33d362 Fixed some broken polygons by adding another sort to polygon tessellation code. 2002-09-13 19:01:01 +00:00
Carl Worth
b2d0004956 Fixed _XrPenVerticesNeeded to not return negative numbers under scaling 2002-09-13 13:27:51 +00:00
Carl Worth
1fa0a496bb Removed state from XrFiller that was redundant with state in XrPolygon. Fixed state update in XrStroker so that paths with multiple subpaths work. Simplified error-prone sorting in XrPenAddPoints. Renamed XrPenVertexTag to XrPenVertexFlag, (to allow for a single vertex that is the starting point for both the forward and reverse half-path). 2002-09-13 12:55:37 +00:00
Carl Worth
2ba3786b27 Fixed rendering of degenerate splines. Changed XrStrokeFace to define everything in terms of the direction of the path 2002-09-10 09:51:14 +00:00
Carl Worth
5f1938f26f Fixed spline error calculation. New effort to compute spline initial/final slopes even for degenerate splines, (degenerate splines are still broken somewhere though). 2002-09-10 08:01:00 +00:00
Carl Worth
44ca388c90 Fix polygon stroking so last final face is rendered exactly. Fix bug in which XrPolygonAddPt with horizontal edge would then drop the next edge. 2002-09-05 13:12:23 +00:00
Carl Worth
bc362fc2e4 Corrected XrPenVerticesNeeded for handling transformed pens 2002-09-05 10:06:44 +00:00
Carl Worth
34ab06281f Fixed brain-damaged XrPenVertexCompareByTheta. Correctly handle degenerate miter joins 2002-09-04 16:11:35 +00:00
Carl Worth
13216da122 Fixed pen to transform user-space radius to device space, (vertices_needed computation still broken). Pen now behaves well when an extra point is coincident with an original vertex point. 2002-09-04 07:28:56 +00:00
Carl Worth
cf6f2e67d9 Added initial spline support. Added XrSetTolerance 2002-09-03 08:42:25 +00:00
Keith Packard
25011eade4 Add dashed line support. Needs work to simplify some case analysis. 2002-08-18 22:55:58 +00:00