mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 22:58:19 +02:00
Merge with git+ssh://git.cairographics.org/git/cairo
This commit is contained in:
commit
9231ab4043
5 changed files with 12 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ SOFTWARE.
|
|||
|
||||
#if defined (__SVR4) && defined (__sun)
|
||||
# include <sys/int_types.h>
|
||||
#elif defined (__OpenBSD__) || defined (_AIX)
|
||||
#elif defined (__OpenBSD__) || defined (_AIX) || defined (__osf__)
|
||||
# include <inttypes.h>
|
||||
#elif defined (_MSC_VER)
|
||||
typedef __int8 int8_t;
|
||||
|
|
|
|||
|
|
@ -615,6 +615,16 @@ _cairo_stroker_move_to (void *closure, cairo_point_t *point)
|
|||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
_cairo_stroker_move_to_dashed (void *closure, cairo_point_t *point)
|
||||
{
|
||||
/* reset the dash pattern for new sub paths */
|
||||
cairo_stroker_t *stroker = closure;
|
||||
_cairo_stroker_start_dash (stroker);
|
||||
|
||||
return _cairo_stroker_move_to (closure, point);
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
_cairo_stroker_line_to (void *closure, cairo_point_t *point)
|
||||
{
|
||||
|
|
@ -954,7 +964,7 @@ _cairo_path_fixed_stroke_to_traps (cairo_path_fixed_t *path,
|
|||
if (stroker.style->dash)
|
||||
status = _cairo_path_fixed_interpret (path,
|
||||
CAIRO_DIRECTION_FORWARD,
|
||||
_cairo_stroker_move_to,
|
||||
_cairo_stroker_move_to_dashed,
|
||||
_cairo_stroker_line_to_dashed,
|
||||
_cairo_stroker_curve_to_dashed,
|
||||
_cairo_stroker_close_path,
|
||||
|
|
|
|||
BIN
test/dash-caps-joins-ps-argb32-ref.png
Normal file
BIN
test/dash-caps-joins-ps-argb32-ref.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.4 KiB |
Loading…
Add table
Reference in a new issue