Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
Lillqvist)
|
|
(cherry picked from f2245a7932b857ff70dc0476490090d906ae61f8 commit)
|
|
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)
|
|
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)
|
|
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)
|
|
- 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)
|
|
(cherry picked from d0cc56b9a24fa59febc15ac5de073da0e785e1cc commit)
(cherry picked from a6a054abe45287eb950c294e20366594313138f5 commit)
(cherry picked from f6b4fabaf59227d6cafcdd7e27cf0d8e26b4eeb8 commit)
|
|
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
|
|
Patch from: Behdad Esfahbod <freedesktop@behdad.org>
Reviewed by: Carl Worth <cworth@cworth.org>
(cherry picked from 0152bd3a562442853ab930eaea316c08b34f6ba6 commit)
|
|
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)
|
|
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)
|
|
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)
|
|
(cherry picked from 1cffb39ff04bbb29bb070e42c51aa1ae6aaf5a4c commit)
|
|
|
|
into X max request length protocol limits.
This fixes bug #5528:
_XError from XRenderCompositeText8
https://bugs.freedesktop.org/show_bug.cgi?id=5528
|
|
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)
|
|
|
|
(cherry picked from d88c19071f6748b190cb17e6724b67705863a9b0 commit)
|
|
Reviewed by: cworth
|
|
|
|
|
|
Vukicevic <vladimirv@gmail.com>).
|
|
reviewed by: keithp
|
|
pointers are not stable. So we introduce our own total order instead.
reviewed by: cworth
|
|
|
|
Add cast so that sign conversion doesn't alter comparison.
|
|
Avoid creating size-0 bitmap, which fails.
|
|
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.
|
|
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).
|
|
(Don't print error message, as this might occur frequently with a misconfigured Pango 1.10.0.)
|
|
is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593)
|
|
acquire/release_dest_image.
|
|
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.
|
|
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.
|
|
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).
|
|
objects.
|
|
scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads.
|
|
Don't bother checking for sincos function.
Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least).
|
|
GetImage/PutImage. (#4321, reported by Sjoerd Simons)
|
|
string. (#4298, Frederic Crozat)
|
|
tolerant of slow compositing code, and is worth some extra expense computing the gradient. (#4263, found in test case from Richard Stellingwerff)
|
|
found using test case from Richard Stellingwerff)
reviewed by: cworth
|
|
versions of gentoo that modified it in a different way. (#4231, fix from Billy Biggs)
|
|
define them. (#4196, Christian Biesinger)
|
|
|
|
|
|
|
|
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
|
|
scaled_font->backend->show_glyphs is needed.
reviewed by: cworth
|