summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2006-07-26Fix text disappearing after space (bug #6617)1.0Carl Worth1-1/+1
What happened here is that when fixing bug #5734 we cahnged the glyph image cache lookup to never return a NULL pointer, but to instead return a 0x0 image surface. We didn't also update code that was looking for a NULL pointer here, and as such we were calling XRenderAddGlyphs with a 0x0 image which apparently tickles a bug in some X servers.
2006-03-15WIN32: Define SHADEBLENDCAPS and SB_NONE if they are not defined. (from Tor ↵Behdad Esfahbod1-0/+8
Lillqvist)
2006-03-15Remove unused RCS $Id:$ tags.Carl Worth2-4/+2
(cherry picked from f2245a7932b857ff70dc0476490090d906ae61f8 commit)
2006-03-15Win32: Handle BitBlt in get_image failure and AlphaBlend not being supportedVladimir Vukicevic1-3/+15
If the BitBlt in get_image fails, we pretty much can't do anything -- so fill the destination with white and hope for the best. This enables somewhat accurate printing of complex operations. Also, check the destination device caps before calling AlphaBlend; return UNSUPPORTED if the destination DC can't do AlphaBlend. (cherry picked from 9831de538e347a624af5b0ca38242b198b64bd45 commit) (cherry picked from 1a1441912604c89e2912ec764fe26b7a9db995a3 commit)
2006-03-15Win32: Set surface format based on device capsVladimir Vukicevic1-2/+25
If the DC is a display DC, inspect its depth and set out local format appropriately. If it's not a display DC, assume RGB24. (cherry picked from 6dd0a70d271f93df95f4bcaff5073b9bf90cecb6 commit) (cherry picked from 2d784815ffac1ca8c10dac12525f2e8d0b412c1a commit)
2006-03-15Win32: Fix up src coords before calling AlphaBlend/BitBlt to avoid invalid callsVladimir Vukicevic1-2/+29
Fixes up src coords and width/height before calling AlphaBlend/BitBlt; it's an error to try to use a region that extents outside of the source surface as a source DC. Doesn't repair the extra region relative to the operator -- e.g. regions outside of an ARGB source surface with SOURCE operator should be cleared to fully transparent black in the destination. (cherry picked from bc19c5b64b0e38e9d20045907d7b47d79f6afc60 commit) (cherry picked from 68ed40b6da242816a43cd68cc2c7feb779cf0acf commit)
2006-03-15Win32: Rework clip and extents handlingVladimir Vukicevic2-58/+36
- Save extents at surface creation and always return these - Simplify clipping paths (cherry picked from a67722b3d7280e6c2375778c2d46556cca261bfc commit) (cherry picked from 7ce09732a978749a4da814feb77f50161dc42c91 commit) (cherry picked from e0f4eecb91c8f7f09ef4977703d4ca21b06797a9 commit)
2006-03-15Misc compilation fixes (C++-style comments, M_PI decls, etc.)Behdad Esfahbod1-0/+4
(cherry picked from d0cc56b9a24fa59febc15ac5de073da0e785e1cc commit) (cherry picked from a6a054abe45287eb950c294e20366594313138f5 commit) (cherry picked from f6b4fabaf59227d6cafcdd7e27cf0d8e26b4eeb8 commit)
2006-03-15Check font_face->status and return a nil scaled font if it is in an error ↵Behdad Esfahbod1-0/+3
state. (Thanks to Christian Biesinger and sunmoon1997 who pointed this out as part of bug #4674) Cherry-picked from head's cairo-scaled-font.c
2006-03-15Allow _get_bitmap_surface to work for 0x0 glyphs, (fix for bug #5734).Behdad Esfahbod1-7/+4
Patch from: Behdad Esfahbod <freedesktop@behdad.org> Reviewed by: Carl Worth <cworth@cworth.org> (cherry picked from 0152bd3a562442853ab930eaea316c08b34f6ba6 commit)
2006-03-13_clip_and_composite_trapezoids: Avoid NULL pointer dereference due to OOM.Carl Worth1-0/+3
This closes bug #6197: Null pointer dereference on OOM in _clip_and_composite_trapezoids() https://bugs.freedesktop.org/show_bug.cgi?id=6197 (cherry picked from 6f0d8eedc504e8af2224c502be25dc82b5df70f4 commit)
2006-03-13cairo-clip: Fix memory leak during OOM handling.Carl Worth1-1/+3
This closes bug #6196: Memory leak in _cairo_clip_intersect_path (src/cairo-clip.c) https://bugs.freedesktop.org/show_bug.cgi?id=6196 (cherry picked from 79075b2cb1ce1397506fc10572df96f6fd00ecc3 commit)
2006-03-13cairo-output-stream: Don't dereference a NULL pointer due to OOM.Carl Worth1-2/+4
This close bug #6176: Null pointer dereference on OOM in _cairo_output_stream_create_for_file() https://bugs.freedesktop.org/show_bug.cgi?id=6176 (cherry picked from c780f4a5624f27a6cbf7829e10e8cd3544ae4f38 commit)
2006-03-08cairo_show_glyphs: Do nothing if num_glyphs == 0Carl Worth1-0/+3
(cherry picked from 1cffb39ff04bbb29bb070e42c51aa1ae6aaf5a4c commit)
2006-03-04Use C-style comments rather than C++-style in C filesChristian Biesinger2-19/+23
2006-03-03_cairo_xlib_surface_show_glyphs: Break up rendering into chunks to fitCarl Worth1-19/+42
into X max request length protocol limits. This fixes bug #5528: _XError from XRenderCompositeText8 https://bugs.freedesktop.org/show_bug.cgi?id=5528
2006-02-23Fix usage of freetype to match Xft and follow David Turner's recommendations.Frederic Crozat1-52/+51
Change a little the logic in hinting to follow the same logic as Xft and doesn't try to mix FT_LOAD_TARGET which should not be mixed (based on David Turner comments)
2006-02-23Fix for sub-pixel BGR and vRGBFrederic Crozat1-11/+25
2006-02-21Rename .cvsignore to .gitignore. Add *~ and *.o.Carl Worth1-0/+13
(cherry picked from d88c19071f6748b190cb17e6724b67705863a9b0 commit)
2005-10-12Intersect clip region with target surface so we don't waste time and memory.Tor Lillqvist1-1/+8
Reviewed by: cworth
2005-10-10Apply proper transform to generated paths.Tor Lillqvist1-6/+4
2005-10-06Add missing initialization for ximage.xoffset.Carl Worth1-0/+1
2005-10-03Add missing initialization for _global_image_glyph_cache_mutex (Vladimir ↵Carl Worth1-0/+3
Vukicevic <vladimirv@gmail.com>).
2005-09-29simplify id initialisation of last patchBertram Felgenhauer1-6/+7
reviewed by: keithp
2005-09-29Using a pointer comparison as the fallback total order was wrong - these ↵Bertram Felgenhauer1-5/+9
pointers are not stable. So we introduce our own total order instead. reviewed by: cworth
2005-09-28Use _cairo_utf8_to_utf16 for character conversion.Tor Lillqvist1-18/+6
2005-09-28Bug #4612, reviewed by cworth.Tor Lillqvist1-4/+4
Add cast so that sign conversion doesn't alter comparison.
2005-09-27Bug #4602, reviewed by cworth.Tor Lillqvist1-2/+2
Avoid creating size-0 bitmap, which fails.
2005-09-27Note that bug #4409 (Dashes are missing initial caps) is now fixed.Carl Worth1-16/+35
Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap. Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate. Remove dash-caps-joins from the XFAIL list and add reference image.
2005-09-26Backported from HEAD:Carl Worth1-1/+2
Portability improvements for win32 thanks to Hans Breuer <hans@breuer.org>: Defined sized-integer types when under the influence of _MSC_VER and without stdint.h. Use #error which is more portable than #warning, (and more indicative of where we want to be before the next release).
2005-09-26If GetGlyphOutlineW() fails, set metrics to zero. (#3927, Hans Breuer) ↵Tor Lillqvist1-4/+8
(Don't print error message, as this might occur frequently with a misconfigured Pango 1.10.0.)
2005-09-26Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which ↵Tor Lillqvist1-2/+2
is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593)
2005-09-20Pass scratch space instead of NULL for image_extra to ↵Tor Lillqvist1-2/+3
acquire/release_dest_image.
2005-09-19Avoid attempting to create a size-0 Pixmap, (to prevent the associated X ↵Carl Worth1-1/+2
error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report. Remove clip-all from the XFAIL list since it works now.
2005-09-19Originally: 2005-09-19 Hans Breuer <hans@breuer.org>Carl Worth2-0/+44
src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections] src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in.
2005-09-16Tested by: John Ellson Closes bug #4408 ↵Carl Worth1-1/+75
https://bugs.freedesktop.org/show_bug.cgi?id=4408 Add support for dashed splines. (The antialiasing quality isn't perfect, but at least the curves are dashed now).
2005-09-13Expand locking to include all modification of cairo_scaled_font and related ↵Carl Worth1-16/+15
objects.
2005-09-13Expand locking to encapsulate any modification to the reference count of a ↵Carl Worth1-37/+48
scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads.
2005-09-12Fix for bug #4401 as reported by Tim Mooney:Carl Worth1-4/+2
Don't bother checking for sincos function. Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least).
2005-08-31Handle displays which don't match the local endianness by byteswapping on ↵Owen Taylor1-30/+140
GetImage/PutImage. (#4321, reported by Sjoerd Simons)
2005-08-30Liberalize the ServerVendor check so that we can handle the Mandriva vendor ↵Owen Taylor1-1/+1
string. (#4298, Frederic Crozat)
2005-08-30Use a 8xN rather than a 1xN strip for a vertical gradient. This is much more ↵Owen Taylor1-2/+9
tolerant of slow compositing code, and is worth some extra expense computing the gradient. (#4263, found in test case from Richard Stellingwerff)
2005-08-27Make the check for rectangular trapezoids simpler and more accurate. (#4220, ↵Owen Taylor1-11/+5
found using test case from Richard Stellingwerff) reviewed by: cworth
2005-08-27Make the vendor string check for XFree86 more liberal, to deal with older ↵Owen Taylor1-1/+1
versions of gentoo that modified it in a different way. (#4231, fix from Billy Biggs)
2005-08-27Undef MIN/MAX before defining them in case some system header happens to ↵Owen Taylor1-0/+3
define them. (#4196, Christian Biesinger)
2005-08-27Fix docs not to talk about %NULL returns. #4271, Duncan Coutts.Owen Taylor1-4/+14
2005-08-24Drop PDF and PS backend and FT font API from Win32 DLL entry points for now.Tor Lillqvist1-3/+0
2005-08-24Fix some minor typos in the doc.Billy Biggs1-9/+9
2005-08-24Use new device_x_scale/device_y_scale surface fields to set the device ↵Keith Packard1-53/+93
coordinate space to the nominal pixels. Treat more alpha values as translucent (up to 0.999) Fix emit_image to actually use a temporary image when necessary. Change PS coordinate space to match cairo (top-down), adjust PS output to use new space. Find more cases where PS output was not supported and fall back to image surface. reviewed by: cworth
2005-08-24_cairo_surface_show_glyphs may return UNSUPPORTED in which case a call to ↵Keith Packard1-0/+17
scaled_font->backend->show_glyphs is needed. reviewed by: cworth