summaryrefslogtreecommitdiff
path: root/fitzdraw
AgeCommit message (Collapse)Author
2010-03-15Rename fitzdraw directory to draw.Tor Andersson
2010-03-09Remove Jamfiles and update the README.Tor Andersson
2010-02-09Use fz_pixmap instead of fz_image and remove the subclassing in pdf_image.Tor Andersson
2010-01-07Reenable x11pdf viewer.Tor Andersson
2010-01-07Shadings with background fill.Tor Andersson
2010-01-07Clipping paths.Tor Andersson
2010-01-07Draw images and shadings.Tor Andersson
2010-01-07Render text.Tor Andersson
2010-01-07Fix typos in stroking code and pass the device matrix to the interpreter. ↵Tor Andersson
Now tigers.
2009-12-07Update path fill, stroke and dash code.Tor Andersson
2009-12-03Consolidate include lines to a single fitz.h.Tor Andersson
2009-12-02Killing time. Butchered display tree and disabled all calls to it.Tor Andersson
2009-12-08Add support for 16 bit per component images.Sebastian Rasmussen
2009-11-29Add some braces and fix up double-indentation on multi-line if/while ↵Tor Andersson
expressions.
2009-11-29Fix up indentation.Tor Andersson
2009-08-25Add implicit closepath segments when filling non-closed subpaths.Tor Andersson
2009-08-19More portable fix for pointer alignments.Ralph Giles
The previous patch cast the pointer to (unsigned long) which fixed a truncation warning on 64 bit Linux, but didn't help on Win64. Casting to (size_t) is a little more portable, but mupdf doesn't use that type. Casting to (char*) and substractiong (char*)0 is the best solution for this. It looks a little messy; if more such checks are added, I suggest moving to a macro: #define PTR_ALIGN4(ptr) (!((char *)(ptr) - (char *)0) & 3)) However, the pointer in rendersolid() is already an (unsigned) char pointer. The check in decodetile() is actually checking an unsigned int pointer for 4-octet alignment, so I don't see how that can ever fail.
2009-08-19Cast pointers to unsigned long to avoid truncation.Ralph Giles
In these two places, a pointer's alignment was checked by casting it to an unsigned in and then masking off all but the last low two bits. This method generates a warning on LP64 systems like Linux x86_64 since the pointer must be truncated. This is fine as far as the algorithm is concerned, but gcc generates a warning which we would like to remove. Casting to (unsigned long) resolves the warning, since this is the same width as a pointer on Linux x86_64. On 32 bit machines, it is generally also the same width as a pointer, and as the previous (unsigned) cast. However, it won't help on Windows x86_64, where long is still 32 bits.
2009-07-30Adjust center-of-pixel offset for image rendering.Tor Andersson
2009-07-30Clamp to edge when sampling outside the edge of an image. Solves many bugs ↵Tor Andersson
with 1x1 sized images used as rectangles that got rendered like gradients.
2009-07-06Declare functions void if they take no arguments.Sebastian Rasmussen
2009-07-05Make internal functions static.Sebastian Rasmussen
2009-07-03Be less strict when comparing tiny features with epsilon in the path ↵Tor Andersson
stroking logic.
2009-06-10Add a COPYING to the fitzdraw subdirectory.Ralph Giles
2009-05-10Fix bug where image scaling accessed data outside of buffer.Sebastian Rasmussen
2009-03-11Remove fz_outofmem constant.Tor Andersson
2009-03-11Rename and prune some files and functions.Tor Andersson
2009-03-11Change fz_error* struct into an integer error type fz_error.Tor Andersson
2009-02-28Merge and move header files into the source directories.Tor Andersson
2009-02-28Moved Fitz files into one directory.Tor Andersson