Fix crash in contourfill when grid is visible - part of ticket #20. Also update credits and homepage address

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2122 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2015-06-25 22:26:49 +00:00
parent 0df4275ad1
commit f9eb1bfe7b
2 changed files with 26 additions and 21 deletions

View File

@@ -2434,14 +2434,19 @@ T_Polygon_edge * Remove_edge(T_Polygon_edge *list, T_Polygon_edge *edge)
void Polyfill_general(int vertices, short * points, int color)
{
short c;
short top = 0x7FFF;
short bottom = 0;
short top;
short bottom;
short *i1, *i2;
short x_pos,end_x;
T_Polygon_edge *edge, *next_edge, *initial_edge;
T_Polygon_edge *active_edges = NULL;
T_Polygon_edge *inactive_edges = NULL;
if (vertices < 1)
return;
top = bottom = points[1];
/* allocate some space and fill the edge table */
initial_edge=edge=(T_Polygon_edge *) malloc(sizeof(T_Polygon_edge) * vertices);