Commit d8288f92 authored by David Odin's avatar David Odin

plug-ins/gfig/gfig-arc.c plug-ins/gfig/gfig-grid.c

* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-grid.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c: fixed some compiler warnings and did some
  cleanups.
parent 9e734189
2005-12-30 DindinX <dindinx@gimp.org>
* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-grid.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c: fixed some compiler warnings and did some
cleanups.
2005-12-30 DindinX <dindinx@gimp.org>
* plug-ins/common/depthmerge.c: fixed some compiler warnings and did
......
......@@ -467,7 +467,7 @@ d_paint_arc (GfigObject *obj)
gdouble ang_loop;
gdouble radius;
gint loop;
GdkPoint first_pnt, last_pnt;
GdkPoint first_pnt, last_pnt = { 0, 0 };
gboolean first = TRUE;
GdkPoint center_pnt;
gdouble minang, arcang;
......
......@@ -80,7 +80,7 @@ prime_factors_get (PrimeFactors *this)
this->current = this->next;
while (this->index <= PRIMES_MAX_INDEX)
{
if (this->remaining % primes[this->index] == 0) // divisible
if (this->remaining % primes[this->index] == 0) /* divisible */
{
this->remaining /= primes[this->index];
this->next = primes[this->index];
......
......@@ -64,8 +64,8 @@ d_draw_poly (GfigObject *obj)
gdouble radius;
gdouble offset_angle;
gint loop;
GdkPoint start_pnt;
GdkPoint first_pnt;
GdkPoint start_pnt = { 0, 0 };
GdkPoint first_pnt = { 0, 0 };
gboolean do_line = FALSE;
center_pnt = obj->points;
......@@ -153,7 +153,8 @@ d_paint_poly (GfigObject *obj)
gdouble radius;
gdouble offset_angle;
gint loop;
GdkPoint first_pnt, last_pnt;
GdkPoint first_pnt = { 0, 0 };
GdkPoint last_pnt = { 0, 0 };
gboolean first = TRUE;
gdouble *min_max;
......@@ -231,7 +232,7 @@ d_paint_poly (GfigObject *obj)
/* Scale before drawing */
if (selvals.scaletoimage)
{// FIXME scale xmax and al.
{/* FIXME scale xmax and al. */
scale_to_original_xy (&line_pnts[0], i/2);
scale_to_original_xy (min_max, 2);
}
......@@ -273,7 +274,8 @@ d_poly2lines (GfigObject *obj)
gdouble radius;
gdouble offset_angle;
gint loop;
GdkPoint first_pnt, last_pnt;
GdkPoint first_pnt = { 0, 0 };
GdkPoint last_pnt = { 0, 0 };
gboolean first = TRUE;
g_assert (obj != NULL);
......@@ -367,7 +369,8 @@ d_star2lines (GfigObject *obj)
gdouble inner_radius;
gdouble offset_angle;
gint loop;
GdkPoint first_pnt, last_pnt;
GdkPoint first_pnt = { 0, 0 };
GdkPoint last_pnt = { 0, 0 };
gboolean first = TRUE;
g_assert (obj != NULL);
......
......@@ -69,7 +69,7 @@ d_draw_spiral (GfigObject *obj)
gdouble offset_angle;
gdouble sp_cons;
gint loop;
GdkPoint start_pnt;
GdkPoint start_pnt = { 0, 0 };
GdkPoint first_pnt;
gboolean do_line = FALSE;
gint clock_wise = 1;
......@@ -166,7 +166,7 @@ d_paint_spiral (GfigObject *obj)
gdouble offset_angle;
gdouble sp_cons;
gint loop;
GdkPoint last_pnt;
GdkPoint last_pnt = { 0, 0 };
gint clock_wise = 1;
g_assert (obj != NULL);
......
......@@ -67,8 +67,8 @@ d_draw_star (GfigObject *obj)
gdouble inner_radius;
gdouble offset_angle;
gint loop;
GdkPoint start_pnt;
GdkPoint first_pnt;
GdkPoint start_pnt = { 0, 0 };
GdkPoint first_pnt = { 0, 0 };
gboolean do_line = FALSE;
center_pnt = obj->points;
......@@ -182,7 +182,8 @@ d_paint_star (GfigObject *obj)
gdouble inner_radius;
gdouble offset_angle;
gint loop;
GdkPoint first_pnt, last_pnt;
GdkPoint first_pnt = { 0, 0 };
GdkPoint last_pnt = { 0, 0 };
gboolean first = TRUE;
gdouble *min_max;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment