Commit graph

81 commits

Author SHA1 Message Date
Carl Worth
e97cfd5eae Made all changes necessary to abandon the Xc library, (sucking the functionality up into cairo_surface_t instead). Eliminated most of the remaining X datatypes (XFixed, XPointFixed, XLineFixed, XTrapezoid). Fixed some numerical problems relating to pen initialization and intersection calculation. 2003-07-30 08:30:50 +00:00
Carl Worth
953b708e2c Do nothing in cairo_show_text when using libic. 2003-07-25 23:16:31 +00:00
Carl Worth
91739aa148 Fix error correction on intersection test to avoid needless spinning. 2003-07-25 13:29:07 +00:00
Carl Worth
cf24f32a51 Massive cleanup of polygon tessellation 2003-07-24 01:40:16 +00:00
Carl Worth
ee146c4740 Introduced cairo_fixed_*_t types. Converted several functions from floating to fixed point. 2003-07-23 21:20:24 +00:00
Carl Worth
6ef8b5cdf4 Better fix for the previous bug. More complete and more efficient. 2003-07-19 14:02:43 +00:00
Carl Worth
92284e4ac8 Fixed polygon tesselattion for some cases of incorrect sorting when two intersections are very near the same vertical position. 2003-07-19 05:19:32 +00:00
Carl Worth
84ed2d465f Fixed some inconsistent tag/typedef names I missed the first time. 2003-07-18 12:42:49 +00:00
Carl Worth
dc1e96ae35 Renamed everything from Xr* to cairo_* 2003-07-18 11:34:19 +00:00
Carl Worth
a18f4ea75b Added XrMatrixGetAffine 2003-07-03 08:22:44 +00:00
Carl Worth
1fc2dabbd0 Added XrGetRGBColor and XrGetAlpha 2003-07-03 08:12:51 +00:00
Carl Worth
991d444754 Scaling by 0 now causes an InvalidMatrix error 2003-06-11 23:43:29 +00:00
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 Hglund) 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