mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
2005-02-05 00:44 Alexander Malmberg <alexander@malmberg.org>
* Source/art/path.m (-_clip_add_svp:): Handle the case where no spans are generated for the path. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20659 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bdc606d592
commit
df49274a8d
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-02-05 00:44 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/art/path.m (-_clip_add_svp:): Handle the case where
|
||||
no spans are generated for the path.
|
||||
|
||||
2005-01-31 07:30 Christian <christian@tenbyten.com>
|
||||
|
||||
* Tools/gpbs.m: Correct missplaced bracket when built for windows.
|
||||
|
|
|
@ -756,6 +756,17 @@ static void clip_svp_callback(void *data, int y, int start,
|
|||
else
|
||||
{
|
||||
art_svp_render_aa(svp, clip_x0, clip_y0, clip_x1, clip_y1, clip_svp_callback, &ci);
|
||||
if (!ci.span)
|
||||
{
|
||||
/* This can happen if the path is empty, or doesn't intersect the
|
||||
current clipping path. The result then is that everything
|
||||
is clipped. */
|
||||
free(ci.index);
|
||||
all_clipped = YES;
|
||||
clip_x0 = clip_x1 = clip_sx = 0;
|
||||
clip_y0 = clip_y1 = clip_sy = 0;
|
||||
return;
|
||||
}
|
||||
clip_span = ci.span;
|
||||
clip_index = ci.index;
|
||||
clip_index[clip_sy - ci.first_y] = clip_num_span = ci.num_span;
|
||||
|
|
Loading…
Reference in a new issue